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

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
cancel
Showing results for 
Search instead for 
Did you mean: 
jrbrutto
Contributor II
Contributor II

Interval with Inter-record function

Hi all,

I have a question how to use Interval with inter-record function to calculate elapsed time between two timestamp.

Here the example I have a column with a date/time

clipboard_image_0.png

I would to create a column about the elapsed time (hh:mm:ss) based on the next row like this

clipboard_image_0.png

I tried Interval ( DatetimeField  - After(DatetimeField) , 'hh:mm:ss' ) as dimension. Expression is ok but it's an invalid dimension. How can make this works?

 

 

Labels (1)
1 Solution

Accepted Solutions
sunny_talwar
MVP
MVP

May be try this

Aggr(
  Interval(DatetimeField - Above(DatetimeField), 'hh:mm:ss')
, (DatetimeField, (NUMERIC)))

View solution in original post

2 Replies
sunny_talwar
MVP
MVP

May be try this

Aggr(
  Interval(DatetimeField - Above(DatetimeField), 'hh:mm:ss')
, (DatetimeField, (NUMERIC)))
jrbrutto
Contributor II
Contributor II
Author

Great!!! It works perfectly. Thank you very much