cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
P_SA
Helper V
Helper V

Increment the time

dgd

1 ACCEPTED SOLUTION

Accepted Solutions
v-xida-msft
Community Support
Community Support

Hi @P_SA ,

Have you solved your problem?

 

If you have solved your problem, please consider go ahead to click "Accept as Solution" to identify my solution is helpful.

 

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

3 REPLIES 3
v-xida-msft
Community Support
Community Support

Hi @P_SA ,

Based on the issue that you mentioned, I have made a test, and the issue is confirmed on my side. I think this issue is related to the unitValue variable set within your UpdateContext() function.

 

When the txtHoursUnits value meets 0.7, the unitValue variable would be be 0.79999999... rather than 0.8 as below:

5.JPG

 

As an fixed solution, I think the Round function could achieve your needs. Please take a try with the following workaround:

6.JPG

On your side, you should modify your formula behind Select(actionCalculateHours) as below:

UpdateContext({timeMins: Round((minUnit * 10) * unitValue, 0)});   // Modify formula here, add Round function to convert
UpdateContext({hoursInUnit:unitValue});
If(timeMins / 60 >= 24, UpdateContext({timeMins:24 * 60}));

UpdateContext({timeHH:Text(Time(0,timeMins,0), "[$-en-US]hh")});

UpdateContext({timeMMSS:Text(Time(0,timeMins,0), "[$-en-US]mm:ss")});

UpdateContext({timeMM:Mid(timeMMSS, 1, 2)});

Reset(txtHours); Reset(txtMins);

 

Please consider take a try with above solution, then check if the issue is solved.

 

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.

thanks it works... great
v-xida-msft
Community Support
Community Support

Hi @P_SA ,

Have you solved your problem?

 

If you have solved your problem, please consider go ahead to click "Accept as Solution" to identify my solution is helpful.

 

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
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

M365 768x460.jpg

Microsoft 365 Collaboration Conference | December 7–9, 2021

Join us, in-person, December 7–9 in Las Vegas, for the largest gathering of the Microsoft community in the world.

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