Forum Discussion
Rounding up time
- 5 years ago
Anonymous
You need to use the seconds as input for my formula, it converts it into time.
I have attached your file with the column added.You can download the file: HERE
________________________
If my answer was helpful, please consider Accept it as the solution to help the other members find it
Click on the Thumbs-Up icon if you like this reply 🙂
Anonymous
You need to use the seconds as input for my formula, it converts it into time.
I have attached your file with the column added.
You can download the file: HERE
________________________
If my answer was helpful, please consider Accept it as the solution to help the other members find it
Click on the Thumbs-Up icon if you like this reply 🙂
Fowmy Ive got it working now, however one of the drive time was 24:52 and when it rounds up it produces 1.
- Fowmy5 years agoSuper User
Anonymous
That is correct, 24 is midnight, 24:57 is next day 1am when rounded up.
hope this clarifies
________________________
If my answer was helpful, please consider Accept it as the solution to help the other members find it
Click on the Thumbs-Up icon if you like this reply 🙂
- Anonymous5 years agoNot applicable
Fowmy Yes that does make sense, however I would need to display 25, as in my vizualisations im displaying hours, any way to adjust the code?
- v-lionel-msft5 years agoCommunity Support
Hi Anonymous ,
Try this formula.
Column = VAR x = FORMAT( [Trukmė Prastova Radviliškis Convert], "00:00") VAR __right = RIGHT(x, 2) VAR __left = LEFT(x, 2) RETURN IF( __right >= "40", __left+ 1, __left-0 )Best regards,
Lionel ChenIf this post helps, then please consider Accept it as the solution to help the other members find it more quickly.