cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
New Member

Record time passed.

I want to do a navigator that measures the time each person took in each step and the total time. I am relatively new to Powerapps each step displays an instruction i.e. take out the trash. etc but I want to see how long it took someone to do that. Please help

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Community Support
Community Support

Re: Record time passed.

Hi @jornok,

Could you please share a bit more about your scenario?

Do you want to measure/calculate the time each person took in each step within your Navigator App?

I agree with @RandyHayes's thought almost. Based on the needs that you mentioned, I think the Timer control could achieve your needs.

On your side, you should add one Timer control (Timer1, Timer2, Timer3, ...) within each step (screen) of your Navigator App. When you click "Navigate" button within each step (Screen) to navigate to next step (screen), calculate/measure the time you took within this step.

I have made a test on my side, please take a try with the following workaround:1.JPG

 

First StepFirst Step

 

Step2Step2

 

Step3(Last Setp)Step3(Last Setp)

Set the OnVisible property of the first screen of your app to following:

Clear(TimeCollection)

Configure the Timer control (Timer1, Timer2, Timer3, ...) within each step (screen) of your Navigator App as below:

Set the Duration property to following:

60000*10      /* <-- 10 Mins. On your side, you should specify the Max Time each step may take */

Set the AutoStart property to following:

true

Within the Step1 (Screen1), set the OnSelect property of the "Next" button to following:

Collect(TimeCollection, {Step:"Step1", Time: Timer1.Value/1000});
Navigate(Screen2, ScreenTransition.Fade);Reset(Timer1)

Within the Step2 (Screen2), set the OnSelect property of the "Next" button to following:

Collect(TimeCollection, {Step:"Step2", Time: Timer2.Value/1000});
Navigate(Screen2, ScreenTransition.Fade);Reset(Timer2) 

Within the Step3 (Screen3, On my side, it is the Last Step), set the OnSelect property of the "Finish" button to following:

Collect(TimeCollection, {Step:"Step3", Time: Timer3.Value/1000});Reset(Timer3)

Note: On your side, you may have many steps. On your Last Step, you need to add a "Finish" button as above rather than "Next" button.

 

After that, the TimeCollection would be populated with Time value (seconds) for each step. The screenshot as below:

 5.JPG

 

Then you could use the following formula to calculate the Total Time took within your Navigator App:

Sum(TimeCollection, Time)

 

Best regards, 

Community Support Team _ Kris Dai
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

2 REPLIES 2
Highlighted
Super User
Super User

Re: Record time passed.

You'll want to explore the Timer control and get used to some samples of how it works.  

Take a look over that.  You can grab the timer count and store it as needed through the process.

 

Hope this helps.

_____________________________________________________________________________________
Digging it? - Click on the Thumbs Up. Solved your problem? - Click on Accept as Solution. Others seeking the same answers will be happy you did.
Highlighted
Community Support
Community Support

Re: Record time passed.

Hi @jornok,

Could you please share a bit more about your scenario?

Do you want to measure/calculate the time each person took in each step within your Navigator App?

I agree with @RandyHayes's thought almost. Based on the needs that you mentioned, I think the Timer control could achieve your needs.

On your side, you should add one Timer control (Timer1, Timer2, Timer3, ...) within each step (screen) of your Navigator App. When you click "Navigate" button within each step (Screen) to navigate to next step (screen), calculate/measure the time you took within this step.

I have made a test on my side, please take a try with the following workaround:1.JPG

 

First StepFirst Step

 

Step2Step2

 

Step3(Last Setp)Step3(Last Setp)

Set the OnVisible property of the first screen of your app to following:

Clear(TimeCollection)

Configure the Timer control (Timer1, Timer2, Timer3, ...) within each step (screen) of your Navigator App as below:

Set the Duration property to following:

60000*10      /* <-- 10 Mins. On your side, you should specify the Max Time each step may take */

Set the AutoStart property to following:

true

Within the Step1 (Screen1), set the OnSelect property of the "Next" button to following:

Collect(TimeCollection, {Step:"Step1", Time: Timer1.Value/1000});
Navigate(Screen2, ScreenTransition.Fade);Reset(Timer1)

Within the Step2 (Screen2), set the OnSelect property of the "Next" button to following:

Collect(TimeCollection, {Step:"Step2", Time: Timer2.Value/1000});
Navigate(Screen2, ScreenTransition.Fade);Reset(Timer2) 

Within the Step3 (Screen3, On my side, it is the Last Step), set the OnSelect property of the "Finish" button to following:

Collect(TimeCollection, {Step:"Step3", Time: Timer3.Value/1000});Reset(Timer3)

Note: On your side, you may have many steps. On your Last Step, you need to add a "Finish" button as above rather than "Next" button.

 

After that, the TimeCollection would be populated with Time value (seconds) for each step. The screenshot as below:

 5.JPG

 

Then you could use the following formula to calculate the Total Time took within your Navigator App:

Sum(TimeCollection, Time)

 

Best regards, 

Community Support Team _ Kris Dai
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

Helpful resources

Announcements
secondImage

Demo-Extravaganza 2020

Check out these cool Power Apps & vote on your favorite!

secondImage

Robotic Process Automation

Let's talk about the solution provided by Microsoft for Robotic Process Automation (RPA)

secondImage

Community Highlights

Check out whats happening in Power Apps

secondImage

Community User Group Member Badges

FIll out a quick form to claim your community user group member badge today!

Top Solution Authors
Top Kudoed Authors
Users online (5,695)