cancel
Showing results for
Did you mean:

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

Regular 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
Super User

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

Proud to be a Super User!

Super User

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

Proud to be a Super User!

Announcements

#### Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

#### Power BI Monthly Update - June 2024

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

#### New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

Top Solution Authors
Top Kudoed Authors