Qlik Community

New to Qlik Sense

Discussion board where members can get started with Qlik Sense.

hbatavia
New Contributor

How to limit top 10 by a measure not used in chart

I created a bar chart on Customers by Profit but I want to limit the chart to just show top 10 customers by Revenue (which is not used in chart). Any idea how to do that?

Thanks in advance.

1 Solution

Accepted Solutions
agigliotti
Honored Contributor II

Re: How to limit top 10 by a measure not used in chart

I think you should create a calculated dimension.

ex. Aggr( if( Rank(Sum(Revenue)) <= 10, Customer, null() ) )  and uncheck "Include null values" checkbox under dimension.

4 Replies
agigliotti
Honored Contributor II

Re: How to limit top 10 by a measure not used in chart

I think you should create a calculated dimension.

ex. Aggr( if( Rank(Sum(Revenue)) <= 10, Customer, null() ) )  and uncheck "Include null values" checkbox under dimension.

qv_testing
Valued Contributor

Re: How to limit top 10 by a measure not used in chart

My bad, your right Andrea .

hbatavia
New Contributor

Re: How to limit top 10 by a measure not used in chart

Hey I am getting an error in expression. Error says Aggr takes at least two parameters.

hbatavia
New Contributor

Re: How to limit top 10 by a measure not used in chart

That was really helpful. This thing worked for me. Thanks,

Aggr(if(Rank(Sum(Revenue)) <= 10, Customers, null()),Customers)

Community Browser