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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Max value per series in script?

Hi all I think this shouldnt be complicated but I cant quite figure out how to do this one, i have the following,

incidentdate
status
AAA01/01/2015 12:00open
AAA

01/01/2015 13:00

-
AAA01/01/2015 14:00-
AAA01/01/2015 15:00-
BBB01/01/2015 13:30open
BBB01/01/2015 14:10-
BBB01/01/2015 14:40-

incident
lateststatus
AAAhold
BBBpause

Now what i want is quite simple, I have left joined these 2 tables, and what I would like is, for the first table, if the last record for each incident is empty, use the lateststatus as status, so the outcome would be this.

This needs to be done in script please,

incidentdate
status
AAA01/01/2015 12:00open
AAA

01/01/2015 13:00

-
AAA01/01/2015 14:00-
AAA01/01/2015 15:00hold
BBB01/01/2015 13:30open
BBB01/01/2015 14:10-
BBB01/01/2015 14:40pause

Many Thanks

1 Solution

Accepted Solutions
antoniotiman
Master III
Master III

Hi Gualter,

see attachment.

Regards,

Antonio

View solution in original post

1 Reply
antoniotiman
Master III
Master III

Hi Gualter,

see attachment.

Regards,

Antonio