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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Ganapathi
Frequent Visitor

Equivalent for excel time format 37:30:55

Hi All,

 

I want to add number of time values with [HH:MM:SS] format , e.g. total hours worked by an employee in the week like below

 

Time format_1.JPGTime format.JPG

1 REPLY 1
Twan
Advocate IV
Advocate IV

I couldn't figure out a way to do it while maintaining the time formatting.  Each time the sum of the time went past 24 it would change the time back to 0.  So a total time of 26:00:00 would be formatted as 2:00:00.

 

I was able to get it working though if you don't mind changing the format from Time to Decimal.  You can do this by adding a new calculated column that converts the time value to a decimal value in hours.  The calculated column would look something like this and have its Data Type set to Decimal Number:

 

Time as Decimal = TIMEVALUE(Table[Time]) * 24

Now that Time is stored as a decimal it can be summed correctly in tables and other visualizations.

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.