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

The Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.

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