Qlik Community

QlikView Scripting

Discussion Board for collaboration on QlikView Scripting.

Announcements

Breathe easy -- you now have more time to plan your next steps with Qlik!
QlikView 11.2 Extended Support is now valid through December 31, 2020. Click here for more information.

pennetzdorfer
Contributor 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
MVP & Luminary
MVP & Luminary

Re: Load records depending on specific preceding records

See attached qvw


talk is cheap, supply exceeds demand
3 Replies
MVP & Luminary
MVP & Luminary

Re: Load records depending on specific preceding records

See attached qvw


talk is cheap, supply exceeds demand
arthur_dom
Contributor III

Re: Load records depending on specific preceding records

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

pennetzdorfer
Contributor III

Re: Load records depending on specific preceding records

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!