Skip to main content
Announcements
Live today at 11 AM ET. Get your questions about Qlik Connect answered, or just listen in. SIGN UP NOW
cancel
Showing results for 
Search instead for 
Did you mean: 
gireesh1216
Creator II
Creator II

Convert if to set analysis?

how to convert if statement to set analysis?

My if condition statement is

IF(TOOL='A','A1',IF(TOOL='B','B1','C1'))

1 Solution

Accepted Solutions
sushil353
Master II
Master II

Hi,

you can use pick & match for the same thing..

like this:  pick(match(TOOL,'A','B','C'),'A1','B1','C1')

View solution in original post

5 Replies
sushil353
Master II
Master II

Hi,

you can use pick & match for the same thing..

like this:  pick(match(TOOL,'A','B','C'),'A1','B1','C1')

jonathandienst
Partner - Champion III
Partner - Champion III

Set expressions are filters, not branching constructs. Nested IF() or Pick() are adequate solutions for this type of operation.

Logic will get you from a to b. Imagination will take you everywhere. - A Einstein
Anonymous
Not applicable

Hi Gireesh

Set Analysis can be used only in the Aggr function .

my suggestion use pick Function  as follows.

=pick(match(TOOL,'A','B','C'),'A1','B1','C1')

gireesh1216
Creator II
Creator II
Author

Thanks

gireesh1216
Creator II
Creator II
Author

Thanks for all