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

Announcements
Save $650 on Qlik Connect, Dec 1 - 7, our lowest price of the year. Register with code CYBERWEEK: Register
cancel
Showing results for 
Search instead for 
Did you mean: 
ali_hijazi
Partner - Master II
Partner - Master II

convert number of seconds into hours, minutes and seconds

Hello

I have a field for call duration that contains the number of seconds per call

I want to display the total number of seconds per department on a chart (pivot table) as Xhrs Ymins Zsec

Please help how to accomplish this in the Expression editor

I can walk on water when it freezes
1 Reply
Not applicable

seconds:

LOAD *,

        interval(Seconds/86400, 'hh:mm:ss') as "Interval Seconds Formatted"

;

LOAD * INLINE [

Seconds

100000

60

200

7201

]

;

Hope that helps

regards

Sravan

Edit: credit to rob and cookbook