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

Announcements
Posting on Qlik Community is temporarily paused. Thank you for patience and we'll update you soon!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Calculating Total Hours when summing times

Hi there,

I am trying to calculate total hours and my results keep rolling over when reaching 24 hours. How do I format the field so that when the total is over 24 hours this will show correctly.

The expression I am using is:

Interval (Sum(TS_TimeActivityFinish-TS_TimeActivityStart),'hh:mm')

Many thanks,

Pip

Labels (1)
2 Replies
tresB
Champion III
Champion III

If you want number of days when it is over 24 then try like:
Interval (Sum(TS_TimeActivityFinish-TS_TimeActivityStart),'dd:hh:mm')

Not applicable
Author

Hi,

thanks this has not worked. I added the timestamp# function prior to this and is has worked.

Thankyou for your assistance.

Timestamp#(Interval (Sum(TS_TimeActivityFinish-TS_TimeActivityStart),'hh:mm'))

Cheers,

Pip