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: 
Anonymous
Not applicable

show dimension values based on condition

Hi All,

  Please find the below table.Country dimension as list box if i selected ALL ,in the pivot table i want to show all countries except ALL  otherwise it should show selected country.

countrySales
ALL40
IND20
USA10
UK10
Labels (1)
4 Replies
YoussefBelloum
Champion
Champion

Hi,

on the dimension of your pivot table, you can do this:

=if(country<>'ALL',country)

jmvilaplanap
Specialist
Specialist

Hi,

Maybe the easiest way is eliminate the row "ALL", because is a SUM of the other rows.

Regards

Anonymous
Not applicable
Author

Thanks,it's not working,if i selected ALL its showing - but its should display all values , if i selected others values its shows that value.

YoussefBelloum
Champion
Champion

EDITED

so try this:

=if(GetFieldSelections(country)='ALL', only({<country-={'ALL'}>}country), country)