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

Announcements
ALERT: QlikView server communication interruptions following Microsoft Windows Domain Controller security updates
cancel
Showing results for 
Search instead for 
Did you mean: 
gireesh1216
Creator III
Creator III

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'))

Labels (1)
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 III
Creator III
Author

Thanks

gireesh1216
Creator III
Creator III
Author

Thanks for all