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

Get the values of only selected dimension

I am using a straight table to  populate country,count and clicks.I want to show the sum of clicks obtained for selected countries.I am using the expression 'count({<Country={'USA','India','UK','Canada'}>}Country)' to populate the count column and this  show only the selected countries and when i add another expression 'sum(clicks)' to show sum of clicks each selected country got,then  table shows count of all the countries from my source excel.Below attached is my sample qlikview file

1 Solution

Accepted Solutions
Gysbert_Wassenaar
Partner - Champion III
Partner - Champion III

Add the same filter to the sum expression too: sum({<Country={'USA','India','UK','Canada'}>}clicks)


talk is cheap, supply exceeds demand

View solution in original post

4 Replies
Gysbert_Wassenaar
Partner - Champion III
Partner - Champion III

Add the same filter to the sum expression too: sum({<Country={'USA','India','UK','Canada'}>}clicks)


talk is cheap, supply exceeds demand
Anonymous
Not applicable
Author

You need the set analysis on the 2nd expression as well.

     Sum({<Country={'USA','India','UK','Canada'}>}Clicks)

Not applicable
Author

Hi thank you for the help it worked for me

Not applicable
Author

Hi thank you for the help