Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Join us in NYC Sept 4th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
Qlikuser225
Contributor III
Contributor III

Sum of Hours

Hi All,

I have data like

Hours

128:12
147:00
0:54
128:12
147:00
0:54
115:12

 

 

Can anyone please help me to calculate sum(Hours) from above.

 

I have used - Interval(Sum(Hours), 'hh:mm') and its not working.

 

Thanks

Labels (2)
1 Solution

Accepted Solutions
tresesco
MVP
MVP

Your expression should have worked. If not, you can assume that your default time formats are not helping qlik read the timestamp as time but string. Hence, you could parse the string and then try to to sum it up, like:

=Interval(Sum(Timestamp#(Hours, 'h:mm')), 'h:mm')

View solution in original post

2 Replies
MayilVahanan

Hi @Qlikuser225 

Try like below

Interval(sum(Hours), 'hh:mm')

MayilVahanan_0-1623215232895.png

 

Thanks & Regards, Mayil Vahanan R
Please close the thread by marking correct answer & give likes if you like the post.
tresesco
MVP
MVP

Your expression should have worked. If not, you can assume that your default time formats are not helping qlik read the timestamp as time but string. Hence, you could parse the string and then try to to sum it up, like:

=Interval(Sum(Timestamp#(Hours, 'h:mm')), 'h:mm')