Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Anonymous
Not applicable

Time Decimals

Hi there,

 

I'm subtracting my times which Ive converted to decimals below. 

 

Ive then ran the seconds through the Duration function from the community and its giving me 04:59 instead of 04:00.

 

It is 09:00 - 13:00 for reference. I was just wondering if anyone could spot whats wrong there and why its 59 minutes out?

 

I also have a lot of values with a minute incorrect e.g. 2:29 instead of 2:30. 

 

222.PNG1111.PNG

 

Thanks

 

Liam

1 ACCEPTED SOLUTION
v-lili6-msft
Community Support
Community Support

hi  @Anonymous 

I have test on my side, it works well

7.JPG

 

The problem should be 'Room Utilisation'[34] in your formula. Why do you use [34] instead of [Duration in seconds] in your formula?

Could you please share your sample pbix file for us to have a test, that will be a great help.

 

Regards,

Lin

Community Support Team _ Lin
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-lili6-msft
Community Support
Community Support

hi  @Anonymous 

I have test on my side, it works well

7.JPG

 

The problem should be 'Room Utilisation'[34] in your formula. Why do you use [34] instead of [Duration in seconds] in your formula?

Could you please share your sample pbix file for us to have a test, that will be a great help.

 

Regards,

Lin

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

@v-lili6-msft 

 

My apologies, two IF statements were causing it to give an incorrect value to the hours function.

 

Thanks for your help 🙂

Anonymous
Not applicable

Hi @v-lili6-msft ,

 

I have a formula which subtracts the time decimals and gives the result. The [34] just multiplies that by 86400.

 

Another example below. 0.6667 - 0.375 = 0.2917 * 24 should equal 7.0008 and be 7 hours. Below is showing 07:59.

 

Capture.PNG

 

 

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.