
Contributor III
2022-01-31
05:57 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
2,193 Views
1 Solution
Accepted Solutions


MVP
2022-01-31
06:03 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
If(WildMatch(Field, 'a*', 'b*'), 'Group1')
1 Reply


MVP
2022-01-31
06:03 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
If(WildMatch(Field, 'a*', 'b*'), 'Group1')
