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

To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.

Reply
Sandro_HE
New Member

Duration Format [hh]:mm

Hello Everyone

 

I have a file where we write down service durations we process for each customer. My goal is to sum up all durations for each customer and visualize these service durations with the format [hh]:mm. Works fine if I try this with Pivot, can't get it to work in Power Query / Power BI.

 

Example:

CustomerService Time
A80:20
B71:45
C53:30
D20:24
E05:59

 

Right now it shows these values in decimals, like this:

 

CustomerService Time
A3.35
B2.99
C2.23
D0.85
E0.25

 

Maybe someone has aaaa solution for this case?

 

Regards

Sandro

1 ACCEPTED SOLUTION
Greg_Deckler
Community Champion
Community Champion

@Sandro_HE 

Check out Duration to Seconds: https://community.powerbi.com/t5/Quick-Measures-Gallery/Duration-to-Seconds-Converter/m-p/342279#M92

 

and 

 

Chelsie Eiden's Duration here - https://community.powerbi.com/t5/Quick-Measures-Gallery/Chelsie-Eiden-s-Duration/m-p/793639#M389

 

Converts to seconds, aggregates, allows you to display as duration while maintaining an underlying numeric value.



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

View solution in original post

2 REPLIES 2
Greg_Deckler
Community Champion
Community Champion

@Sandro_HE 

Check out Duration to Seconds: https://community.powerbi.com/t5/Quick-Measures-Gallery/Duration-to-Seconds-Converter/m-p/342279#M92

 

and 

 

Chelsie Eiden's Duration here - https://community.powerbi.com/t5/Quick-Measures-Gallery/Chelsie-Eiden-s-Duration/m-p/793639#M389

 

Converts to seconds, aggregates, allows you to display as duration while maintaining an underlying numeric value.



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...
Jimmy801
Community Champion
Community Champion

Hello @Sandro_HE 

 

in Power BI is no possibility to sum durations. What you can do is to transform them to seconds in power query and create a measure in Power BI that sums the seconds and transforms them into a [h]:mm-format.

Read this for more help link 

 

If this post helps or solves your problem, please mark it as solution (to help other users find useful content and to acknowledge the work of users that helped you)
Kudoes are nice too

Have fun

Jimmy

Helpful resources

Announcements
Top Solution Authors
Top Kudoed Authors