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

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

Time difference between two timestamps


Hi All,

Kindly help me to resolve the difference between two timestamps

Ex:

      column 1 :  2013-05-17 22:14:15

      column 2:   2013-05-17 22:20:15

Tried out the following option (Mentioned earlier in the community but it didnt work ,returns no value)

 

=

Interval(NUM(Date#(finished, 'DD-MM-YYYY hh:mm:ss tt')-num(Date#(started, 'DD-MM-YYYY hh:mm:ss tt'))))

Thanks in advance

Labels (1)
1 Reply
Clever_Anjos
Support
Support

dont use tt since your using 24h period and adjust you date format

Interval(NUM(Date#(finished, 'YYYY-MM-DD hh:mm:ss')-num(Date#(started, 'YYYY-MM-DD hh:mm:ss'))))