Skip to main content
Woohoo! Qlik Community has won “Best in Class Community” in the 2024 Khoros Kudos awards!
Announcements
Nov. 20th, Qlik Insider - Lakehouses: Driving the Future of Data & AI - PICK A SESSION
cancel
Showing results for 
Search instead for 
Did you mean: 
pennetzdorfer
Creator III
Creator III

Load records depending on specific preceding records

Hey,

I'm analyzing some of our system logfiles in order to identify bottlenecks. My (simplified) data model contains the fields ItemID, ActionType and Timestamp.

The issue:

For each ItemID I would like to extract the Timestamp of the first occurence of ActionType A   -  under the condition that there already has been a preceding ActionType D (red records).

1.jpg

Please note that I need to do that in script! I would like to create a new table that should look like this:

2.jpg

Please find the attached qvw.

Thanks in advance!

Regards, Florian

1 Solution

Accepted Solutions
Gysbert_Wassenaar

See attached qvw


talk is cheap, supply exceeds demand

View solution in original post

3 Replies
Gysbert_Wassenaar

See attached qvw


talk is cheap, supply exceeds demand
arthur_dom
Creator III
Creator III

I think you could do something like this: <attached>

pennetzdorfer
Creator III
Creator III
Author

Thanks a lot!

Is it also possible to do the "converse":  extract the Timestamp of the last occurence of Action A before the first occurrence of Action D?  (please see red lines)

2.jpg

Thanks!