Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
rpavan17
Creator
Creator

Time difference with previous records

Hi,

I am trying to identify the time gap between the previous record.

 

ROWLOG_INDEXTimestamp_His
1101810-04-2018 12:52
2600709-05-2018 08:41
3601209-05-2018 08:41
4101725-05-2018 09:15
5101825-05-2018 09:15
6601128-05-2018 11:12
7101807-06-2018 11:30
8600708-06-2018 12:18
9601208-06-2018 12:18
101000015-06-2018 11:04
111000015-06-2018 11:04
121000015-06-2018 11:04

Need difference between timestamps

1) Row 2 to Row 1

2)Row 7 to Row 6

3) Row 8 to Row 7

Please help...

Thanks..

4 Replies
rpavan17
Creator
Creator
Author

Also, need to add 1)+2)+3) at the end..

sunny_talwar

What is the logic behind finding differences for only those 3 rows? I mean your data can be longer then what you have provided, right? Will the calculation always remain the same (differences on only 3 occasion)?

rpavan17
Creator
Creator
Author

I have just given an example for single ticket.

I would like to calculate the time difference for each status change.(Log_index change)

sunny_talwar

Which ticket is this an example for? I guess can you elaborate your example a little bit more?