Skip to main content
Announcements
Qlik Introduces a New Era of Visualization! READ ALL ABOUT IT
cancel
Showing results for 
Search instead for 
Did you mean: 
louise119
Creator III
Creator III

Filter with If statement

I use an if statement for my filter.
Is there a way to get just the selected Region value in the case below?

ex) if (Region='US' or Region='Canada' or Region='China', Region)

1 Solution

Accepted Solutions
Kushal_Chawda

@louise119  you can use filter with expression

=aggr(if (match(Region,'US' ,'Canada' ,'China'), Region),Region)

View solution in original post

4 Replies
Kushal_Chawda

@louise119  you can use filter with expression

=aggr(if (match(Region,'US' ,'Canada' ,'China'), Region),Region)

louise119
Creator III
Creator III
Author

Thank you so much.

Can I use the expression?

=aggr(if (match(Region,'North America' ,'South America' ,'Asia'), Country),Country)

Kushal_Chawda

@louise119  Yes. but you need to include Region as well in Aggr

=aggr(if (match(Region,'North America' ,'South America' ,'Asia'), Country),Country,Region)

louise119
Creator III
Creator III
Author

Thank you so much.
One more thing...

I use this expression, but the filter was display only 'Japan'.
Do you know the reason why...??

expression:
=aggr(if (match(Region,'USA','Japan','Germany'), Region),Region)

test.png