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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
ashishpalkar
Creator III
Creator III

Filter Multiple values in script

Hi There

I am looking filter multiple values in script, i tried using <> sign.

what will be the correct syntax?

E.g

Country <> 'UK' and US and 'AU'

and

ID <> '1100' and '2200' and '3300'

Thanks in advance

1 Solution

Accepted Solutions
gsbeaton
Creator II
Creator II

Hi Ashish

You can use the MATCH() keyword combined with NOT, eg

WHERE NOT MATCH(Country, 'UK,US,AU')  AND  NOT MATCH(ID, '1100,2200,3300');

Hope that helps,

George

View solution in original post

5 Replies
swuehl
MVP
MVP

NOT MATCH(Country, 'UK', 'US', 'AU')

NOT MATCH(ID,'1100','2200','3300')

alexandros17
Partner - Champion III
Partner - Champion III

If you want Country different from UK and different from US and AU then

...

Where Country <> 'UK' and Country <> 'US' and Country <> 'AU'

if you need that at leadt one can be different then

...

Where Country <> 'UK' orCountry <> 'US' or Country <> 'AU'

The same for item ...

let me know

Anonymous
Not applicable

If you want to load only certain values from a table dimension use the 'where' expression in the loading script. See:

Load Where.


You can also use the set analysis to show / exclude selected fields in your calculations

eg.

=sum({$<CustomerID-={'0056'}>} InvoiceAmt)

notice the '-' before the '=' to exclude values.

gsbeaton
Creator II
Creator II

Hi Ashish

You can use the MATCH() keyword combined with NOT, eg

WHERE NOT MATCH(Country, 'UK,US,AU')  AND  NOT MATCH(ID, '1100,2200,3300');

Hope that helps,

George

ashishpalkar
Creator III
Creator III
Author

Thanks all, WHERE NOT MATCH(Country, 'UK,US,AU')  AND  NOT MATCH(ID, '1100,2200,3300') worked well.