Skip to main content
Announcements
Introducing Qlik Answers: A plug-and-play, Generative AI powered RAG solution. READ ALL ABOUT IT!
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

May be try this

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

View solution in original post

2 Replies
sunny_talwar

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