Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
Aldemarprins4
Contributor III
Contributor III

IF with No Match

Hello guys, I have the following problem, I have two countries that I want to exclude with an IF NO MATCH THEN, is it possible to do it?

 

Thank

 

Labels (1)
1 Solution

Accepted Solutions
MarcoWedel

 

If(not Match(Vcountry,'Colombia','CostaRica'), then this, else that)

View solution in original post

4 Replies
AshutoshBhumkar
Partner - Specialist
Partner - Specialist

Hello,

If you want to exclude data in backend, you can use not match or not wildmatch.

e.g 

Load

Country, CITY, Sales

From[................] where not match(Country,'A','B')

 

If from frontend then use '-='

E.g  Sum({<Country - = {'A','B'}>}Sales)

 

Hope this helps.

 

Thanks,
Ashutosh

Aldemarprins4
Contributor III
Contributor III
Author

Thank  but

I can do the following statement:

 

If(Not match ('Vcountry)'='Colombia',CostaRica'))

MarcoWedel

 

If(not Match(Vcountry,'Colombia','CostaRica'), then this, else that)
Aldemarprins4
Contributor III
Contributor III
Author

Thanks a lot