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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Expression: Convert seconds to HH:MM:SS

Hello!

I have a problem, i import a table from SQL via ODBC, where there is a count in Seconds.

If i choose a date, i can make a statistics box to see the avg. but i seconds.

I want to see these numbers in HH:MM:SS.

Lets say i want to make a diagram showing the different times, how can i write an expression that convert to HH:MM:SS?

Thanks!

9 Replies
Not applicable
Author

hi

try this

Time(Time#(fieldname,'ss'),'hh:mm:ss')

Not applicable
Author

hi try like this

=Time(Time#('4550','ss'),'hh:mm:ss')

then output like this

01:15:50

er_mohit
Master II
Master II

use interval function

Not applicable
Author

I get "No Data to display"

Not applicable
Author

Please tell me how

amit_saini
Master III
Master III

Hi Erik,

Go to chart properties-->go to number tab  and select desired format you want.

Thanks,

AS

Not applicable
Author

No sorry that does not help.

I have a list with seconds.

And i want to express them like HH:MM:SS

amit_saini
Master III
Master III

Hi Erik,

This can be possible while selecting timestamp option the the properties you define your format hh:mm:ss

and you will get the correct result.

Thanks,

AS

amit_saini
Master III
Master III

Hi Erik,

You can also you this script:

dual( Date(TS,'YYYY-MM-DD') &'T' & time(TS,'hh:mm:ss'), num(TS) ) as Timestamp,

Thanks,

AS