Showing results for 
Search instead for 
Did you mean: 
Regular Visitor

How to store a Timer's value and duration into a variable?

I have created a loading bar which uses disableAppTimer.Value/disableAppTimer.Duration


I now have 3 screens which all use the same timer (disableAppTimer.Value & disableAppTimer_1.Value & disableAppTimer_2.Value) but I am struggling to tie them into the same loading bar as it just wont work.


I have tried the following but no success.

0 + ((446 * disableAppTimer.Value||disableAppTimer_1.Value||disableAppTimer_2.Value/disableAppTimer.Duration))

and a few others...

0+((446*If(disableAppTimer.Start= true ,disableAppTimer.Value/disableAppTimer.Duration,If(disableAppTimer_1.Start= true ,disableAppTimer_1.Value/disableAppTimer_1.Duration,If(disableAppTimer_2.Start= true ,disableAppTimer_2.Value/disableAppTimer_2.Duration)))))


Ideally, I would like to place all these timers into a variable, for example,

Set(varDisableAppValue, disableAppTimer.Value)

Set(varDisableAppValue, disableAppTimer.Value_1)

Set(varDisableAppValue, disableAppTimer.Value_2)

& then

Set(varDisableAppDuration, disableAppTimer.Duration)

Set(varDisableAppDuration, disableAppTimer.Duration_1)

Set(varDisableAppDuration, disableAppTimer.Duration_2)

Once done, I would then be able to use:

0 + ((446 * varDisableAppValue/varDisableAppDuration))


Is this possible or can you suggest any workarounds?




Helpful resources

Power Apps News & Annoucements carousel

Power Apps News & Announcements

Keep up to date with current events and community announcements in the Power Apps community.

Power Apps Community Blog Carousel

Power Apps Community Blog

Check out the latest Community Blog from the community!

Top Solution Authors
Top Kudoed Authors
Users online (3,233)