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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
ajsingh
Frequent Visitor

how to do sum of time column in power query

hi ,

i have one some data in seconds but have to perform sum on it and show it in hours and minutes , but the problem is after 24 hours it it again stating from 0Screenshot (152).png

3 ACCEPTED SOLUTIONS
v-qiuyu-msft
Community Support
Community Support

Hi @ajsingh,

 

You can refer to @MarcelBeug's reply here

 

= #time(0,0,0)+ #duration(0,0,0,List.Sum(#"Changed Type"[Column1]))

 

Best Regards,
Qiuyun Yu

 

Community Support Team _ Qiuyun Yu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

Possibly a better reference is here, where I explain that time values >= 24:00 are actually durations., not values of type time.

In the last post in the link I present an alternattive for durations >= 24:00.

 

Specializing in Power Query Formula Language (M)

View solution in original post

#duration(0,0,0,[column_name])

 

 

this is working fine for my case, thanks a lot for the help

View solution in original post

3 REPLIES 3
v-qiuyu-msft
Community Support
Community Support

Hi @ajsingh,

 

You can refer to @MarcelBeug's reply here

 

= #time(0,0,0)+ #duration(0,0,0,List.Sum(#"Changed Type"[Column1]))

 

Best Regards,
Qiuyun Yu

 

Community Support Team _ Qiuyun Yu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

#duration(0,0,0,[column_name])

 

 

this is working fine for my case, thanks a lot for the help

Possibly a better reference is here, where I explain that time values >= 24:00 are actually durations., not values of type time.

In the last post in the link I present an alternattive for durations >= 24:00.

 

Specializing in Power Query Formula Language (M)

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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