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

Data Days is here! Join us now for 60+ days of learning, challenges, and connection. Learn more

Reply
Gamdalf
Frequent Visitor

[h]:mm:ss formatting calculating days rather than counting hours beyond 24

Hey all, 

I run a spreadsheet extract through a cruncher for a contact centre that calculates times in [h]:mm:ss format

Example would be if a team total had 6 people working 8 hours, the total team time for that day would display as "48:00:00"

I've Powerqueried this and set the Data Type as Time, and changed the Format to h:nn:ss as there isn't a [h]:mm:ss format in PowerBI

 

Instead of diplaying the total hours, I'm getting visuals showing 2:00:00 (ergo, 2 days instead of 48 hours)


Is there any way I can get my visuals to calculate the total hours, and not summarise the time to be days, but still retain the time capture format as it's valuable to be able to see the specific time values as it's part of adherence reporting

 

Thanks!

1 ACCEPTED SOLUTION
ryan_mayu
Super User
Super User

@Gamdalf 

herer is a workaround for you.

 

measure =
VAR _TOTAL=sum('Table'[time])*3600*24
VAR _h=int(_TOTAL/3600)
VAR _m=right("0"&int(mod(_TOTAL,3600)/60),2)
VAR _s=right("0"&_TOTAL-_h*3600-_m*60,2)
return _h&":"&_m&":"&_s
 
11.PNG




Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




View solution in original post

1 REPLY 1
ryan_mayu
Super User
Super User

@Gamdalf 

herer is a workaround for you.

 

measure =
VAR _TOTAL=sum('Table'[time])*3600*24
VAR _h=int(_TOTAL/3600)
VAR _m=right("0"&int(mod(_TOTAL,3600)/60),2)
VAR _s=right("0"&_TOTAL-_h*3600-_m*60,2)
return _h&":"&_m&":"&_s
 
11.PNG




Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




Helpful resources

Announcements
Fabric Data Days is here Carousel

Fabric Data Days 2026

Don't miss out on Data Days, June 15 through August 7. Learn Fabric, Power BI, SQL, AI and more.

May Power BI Update Carousel

Power BI Monthly Update - May 2026

Check out the May 2026 Power BI update to learn about new features.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.