web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Timer Function to trac...
Power Apps
Unanswered

Timer Function to track the time taken

(0) ShareShare
ReportReport
Posted on by 101

Is there a way to track the time taken to complete a process in your Power App? Is it possible to retrieve time taken using timer control?

 

I have 10 screens, the timer should trigger after a click of a button on the first screen and should be stopped at the end, once the user clicks submit.

 

Thanks

Categories:
I have the same question (0)
  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Hi @Vignesh_2112 ,

    Yes, it is possible, but I do not know if it is possible with Timer. I have an easier solution though.

    On the first screen, when the user clicks the start button, you can set a variable using the onSelect property of the button:

    Set(startTime, Now())

    And when user clicks submit on the last screen:

    Set(endTime, Now()); Set(timeTaken, DateDiff(startTime, endTime, Seconds))

     

    And now you have the total time the user took.

  • Vignesh_2112 Profile Picture
    101 on at

    How to grab the total time taken, I need to read the time taken in the App itself. Like a Button or textInput

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Total time taken is set to timeTaken variable that you can access anywhere in the app after the user clicks submit.

     

    Just set the text property of the button or the text input to:

    "Total Time: "&timeTaken&" seconds"

     

  • v-qiaqi@microsoft.com Profile Picture
    Microsoft Employee on at

    Hi@Vignesh_2112,

    Based on the issue you mentioned, do you want to calculate the time spent on a process?

    It seems that the setting time variable is more manageable. We can store the time that the user opens the screen into a variable (eg. on the OnVisible property of the screen). Then on the Submit button, we can work out the duration by calculating the difference between the current time and the initial time.

    @Anonymous provides the correct direction. I just do some fine-tuning with it.

    Add a Label and set the Text property as: 

    duration​

     

    Considering you want to set a timer to track time spent, let me explain. Actually, trigger function can’t be achieved in Timers currently in Power Apps. Especially you have multiple screens to trigger across. The timer only works on the currently active screen.

    If you would like this feature to be added in PowerApps, please submit an idea to PowerApps Ideas Forum:

    https://powerusers.microsoft.com/t5/Power-Apps-Ideas/idb-p/PowerAppsIdeas

     

     

    Best Regards,

    Qi

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Vish WR Profile Picture

Vish WR 842

#2
Valantis Profile Picture

Valantis 563

#3
Haque Profile Picture

Haque 402

Last 30 days Overall leaderboard