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: 
Not applicable

Plz help with grouping data based on column

I have following data

CHECKED AT, System NAME, NAME, STATUS

7/16/2015 9:25:02 AM,XX,A,"Running"

7/16/2015 9:25:02 AM,XX,B,"Running"

7/16/2015 9:25:05 AM,YY,"A","Running"

7/16/2015 9:25:04 AM,YY,"B","Stopped"

7/16/2015 9:25:05 AM,ZZ,"A","Stopped"

7/16/2015 9:25:04 AM,ZZ,"B","Stopped"

Here in this i have 3 system for which i have status of A and B separated, if both A and B are stopped then only i should consider System as Down . if any of the A and B are in running status then it should be considered up . is there any way we can do that in qlikview by creating a new column and show as DOWN if both are stopped and show as UP if any one is running in load script

6 Replies
Anonymous
Not applicable
Author

Hello,

At what interval they should be assumed as running at the same time? Within 1 second, 2 secs, 5 secs?

I can see they have different timestamps.

BR

Serhan

sgrice
Partner - Creator II
Partner - Creator II

In LOAD SCRIPT:-

statusTable:

load

[CHECKED AT], [System NAME], NAME, STATUS

from SampleFile.Txt(TXT);

left Join  (statusTable)

Load

System NAME,

Max(if(STATUS='Running',1,0)) as UP_STATUS

resident statusTable;

Or IN a Chart:-

expression:- Max(if(STATUS='Running',1,0))

in a chart where [System NAME] is a dimension

Not applicable
Author

Getting Invalid expression error at the line . Please suggest what is wrong here

max(if(Lower([STATUS]) ='running',1,0)) as UP_STATUS

sgrice
Partner - Creator II
Partner - Creator II

left Join  (statusTable)

Load

[System NAME],

Max(if(STATUS='Running',1,0)) as UP_STATUS

resident statusTable

group by [System NAME];

Not applicable
Author

Thanks it worked

sgrice
Partner - Creator II
Partner - Creator II

Is this now complete if so can you mark has correct.