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

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes! Register now.

Reply
SAMBWILLANS
Frequent Visitor

Sum of reporting duration - Colum data type time

Hi There

 

Please could I get some assistance with calculating a measure to sum a reporting duration

 

 

This is currently in BI as a time data type

SAMBWILLANS_0-1656335847067.png

 

how can i get a simple total sum? to display on a card?

 

 

Thank you!

Sam

 

 

 

 

 

1 ACCEPTED SOLUTION
ryan_mayu
Super User
Super User

@SAMBWILLANS 

do you want to display days or only hours minutes and seconds?

pls try this(no days)

measure = 
VAR _sum=sum('Table (2)'[Duration])*86400
VAR _h=int(_sum/3600)
VAR _m=int((_sum-_h*3600)/60)
VAR _s=int(_sum-_h*3600-_m*60)
return _h&"h:"&_m&"m:"&_s&"s"

1.PNG

 





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

Proud to be a Super User!




View solution in original post

3 REPLIES 3
SAMBWILLANS
Frequent Visitor

Just a Total In Hours and Minutes ideally 🙂

ryan_mayu
Super User
Super User

@SAMBWILLANS 

do you want to display days or only hours minutes and seconds?

pls try this(no days)

measure = 
VAR _sum=sum('Table (2)'[Duration])*86400
VAR _h=int(_sum/3600)
VAR _m=int((_sum-_h*3600)/60)
VAR _s=int(_sum-_h*3600-_m*60)
return _h&"h:"&_m&"m:"&_s&"s"

1.PNG

 





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

Proud to be a Super User!




Anonymous
Not applicable

Create a new column for time either in hr or mm as per your need then just sum the value in the new column and you will get your answer

 

Helpful resources

Announcements
September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 2025 Power BI update to learn about new features.

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.

Top Solution Authors
Top Kudoed Authors