Skip to main content
Announcements
NEW: Seamless Public Data Sharing with Qlik's New Anonymous Access Capability: TELL ME MORE!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

selection filter ?

HI All,

If i select USA, I want to see Sum, Max, Min Expressions.....

If i select UK, I want to see Count, avg, Max Expressions.....

If i select Ireland, I want to see Count, avg, Min Expressions.....

If i didn't select any CustomerCountry I want see all the expressions...

Kindly help me on this..

Regards,

Helen

5 Replies
tresesco
MVP
MVP

Enable expression conditional check box and use expression something like:

for count expression = WildMatch( Concat(DISTINCT CustomerCountry&'|'),'*UK'&'|*','*Ireland'&'|*')

PFA

Anonymous
Not applicable
Author

Do you want the effect only for 3 countries?? or for all the countries in your list??

Try using conditional expressions.

table properties - expressions - click on expression - check conditional - and writhe condition like getfieldselections(country) = USA or getselectionscount(country) = 0 for sum,  and similarly  getfieldselections(country) = UK or getfieldselections(country) = IRELAND or getselectionscount(country) = 0 for count etc.

Think this will work but lets see if there is any better way.

pipuindia99
Creator III
Creator III

Hi,

PFA,

It works for me as required.

pipuindia99
Creator III
Creator III

sorry attached wrong file earlier, attached now the correct file.

sunny_talwar

Did you even try this?

Selection of Countries ?