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

Announcements
Posting on Qlik Community is temporarily paused for some users. Thank you for patience and we'll update you soon!
cancel
Showing results for 
Search instead for 
Did you mean: 
Mt3
Contributor III
Contributor III

If statement with multiple values selection

Hi,

I am trying to create a statement with a list of values to choose from, something like 'in' statement in qlik ( charts script)

Exemplary,  if we have a list of values {a,b,c,d,e,f}, this is what i would like to acheive:

if Field in 'a*','b*' then 'Group1'

Obviously when trying :  = if(Field like 'a*' or 'b*'), Group1  , query takes only values with 'a*' . Of course one could end up making 6 nested if statement, but this is the worst-case scenario due to long loading of charts.

1 Solution

Accepted Solutions
MarcoWedel
MVP
MVP

If(WildMatch(Field, 'a*', 'b*'), 'Group1')

View solution in original post

1 Reply
MarcoWedel
MVP
MVP

If(WildMatch(Field, 'a*', 'b*'), 'Group1')