Skip to main content
Woohoo! Qlik Community has won “Best in Class Community” in the 2024 Khoros Kudos awards!
Announcements
Nov. 20th, Qlik Insider - Lakehouses: Driving the Future of Data & AI - PICK A SESSION
cancel
Showing results for 
Search instead for 
Did you mean: 
onkarkulkarni
Creator
Creator

Match instead of if condition

Hello there,

I am trying to use 'Match' instead of 'if' . I have Region and country column in my data.

Condition is :

if Region in ('Asia','Africa',Europe') and Country in ('India','China') then 'Asia Pacific'

Could you please suggest how can I use 'match here ?

I tried with : =if (match([Region],'Asia','Africa',Europe and (match([Country],'India','China')), 'Asia Pacific'))     Its not working

Thanks in advance.

1 Solution

Accepted Solutions
tresesco
MVP
MVP

Try like:

=if (match([Region],'Asia','Africa','Europe') and match([Country],'India','China'), 'Asia Pacific')


Note the bracket corrections.

View solution in original post

2 Replies
tresesco
MVP
MVP

Try like:

=if (match([Region],'Asia','Africa','Europe') and match([Country],'India','China'), 'Asia Pacific')


Note the bracket corrections.

onkarkulkarni
Creator
Creator
Author

Thanks Tresesco .. It was silly mistake.. Its working fine