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
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.

August 2025 community update carousel

Fabric Community Update - August 2025

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

Top Solution Authors