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

I don't know how to do this, like a hierarchy

Hi,

By ID find out if its say for example top, middle or bottom.

ID,A,B,C

1,YES,YES,YES

2,,YES,YES

3,,,YES

So look per ID and row, and find where the yes is, if in A then top, if in b then medium and if in C then low

In script please 

 

Thanks

 

 

 

3 Replies
Taoufiq_Zarra

@D19PAL  can you share a sample data and the expected output ?

Regards,
Taoufiq ZARRA

"Please LIKE posts and "Accept as Solution" if the provided solution is helpful "

(you can mark up to 3 "solutions") 😉
D19PAL
Creator II
Creator II
Author

Sample data is there

 

ID,outcome

1,top

2,middle 

3,bottom 

anat
Master
Master

load ID,if(match(A,'YES'),'Top',
if(match(B,'YES'),'Middle',
if(match(C,'YES'),'Low')
) )as test;