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

Announcements
Join us in NYC Sept 4th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
au_anish
Contributor
Contributor

Filter a dimension based on a measure

I'm trying to create a bar chart in Qlik Sense which shows top 5 regions by total spend. I managed to do this very easily. I now want show the top 5 regions by total spend where the region has had a minimum of 50 orders. I tried something like this but it doesn't work

=if(count(order_num)>=50,region_name)

How can I filter the x-axis of my chart so it shows only the regions which had minimum 50 orders?

Labels (2)
1 Solution

Accepted Solutions
Gysbert_Wassenaar
Partner - Champion III
Partner - Champion III

You have a measure in your chart for calculating the total spend. Change the expression of that measure to make it calculate the total spend only for the regions that have more than fifty orders. For example sum(Spend) would become sum( {<region_name={"=count(distinct order_num)>=50"}>} Spend)


talk is cheap, supply exceeds demand

View solution in original post

1 Reply
Gysbert_Wassenaar
Partner - Champion III
Partner - Champion III

You have a measure in your chart for calculating the total spend. Change the expression of that measure to make it calculate the total spend only for the regions that have more than fifty orders. For example sum(Spend) would become sum( {<region_name={"=count(distinct order_num)>=50"}>} Spend)


talk is cheap, supply exceeds demand