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

How to convert seconds into a number/integer

Hi all,

What do I need to do to this expression to convert it into a number?

Interval(SchedArriv-ActualArrive,'ss') .

I've tried a SUM and a NUM, but it returns incorrect values.

Thanks

1 Solution

Accepted Solutions
Gysbert_Wassenaar
Partner - Champion III
Partner - Champion III

Leave out the interval. Dates are numbers so simply subtracting two dates from each other will result in another number. If you want you can use the num function to specify a format: num(ScheArriv-ActualArrive,'#,###.00')


talk is cheap, supply exceeds demand

View solution in original post

2 Replies
Gysbert_Wassenaar
Partner - Champion III
Partner - Champion III

Leave out the interval. Dates are numbers so simply subtracting two dates from each other will result in another number. If you want you can use the num function to specify a format: num(ScheArriv-ActualArrive,'#,###.00')


talk is cheap, supply exceeds demand
Not applicable
Author

Thanks again, Gysbert!