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

Announcements
Qlik Connect 2026! Turn data into bold moves, April 13 -15: Learn More!
cancel
Showing results for 
Search instead for 
Did you mean: 
ivan_will
Partner - Creator II
Partner - Creator II

IF statement ?= CASE statement(from script)

Could you tell me how can I make if statement(in qlikview, not in the script!) to be the same like this case statement in the script:

( CASE

WHEN A= 5 THEN 1

WHEN A = 4 THEN 2

ELSE 3

END ) FLAG

1 Solution

Accepted Solutions
oleg_orlov
Creator
Creator

WildMatch (A, '5', '4', '*')

or more flexible solution:

Pick (WildMatch (A, '5', '4', '*'),

      'One',

      'Two',

      'Three'

)

View solution in original post

2 Replies
blaise
Partner - Specialist
Partner - Specialist

if(A=5,1,if(A=4,2,3)) as FLAG

oleg_orlov
Creator
Creator

WildMatch (A, '5', '4', '*')

or more flexible solution:

Pick (WildMatch (A, '5', '4', '*'),

      'One',

      'Two',

      'Three'

)