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

Announcements
Talend Cloud AWS EU Scheduled Outage: Starting Tues 26 May 21:00 CEST with expected completion Wed 27 May 01:00 CEST
cancel
Showing results for 
Search instead for 
Did you mean: 
dmac1971
Creator III
Creator III

Top 10 Year On Year

I have two tables, one for 2012 and one for 2013 showing top 10 customers.  The problem is that the 2012 will only show the top 9 customers, I suspect the reason is that the 10th customer for 2012 is not in the top 10 for 2013 so its now being shown?  Any ideas how to fix, everything else is working correctly!!

Labels (1)
1 Solution

Accepted Solutions
Anonymous
Not applicable

If you are using a straight table on QV 11, you can do this :

- In dimension tab, choose only Customer dimension.

- In dimension limits, choose to restrict the values and show only the 10 largest values and not show the others

- Then keep your expression.

Dimension Limits.PNG.png

View solution in original post

5 Replies
Anonymous
Not applicable

Hello,

For your Top 10 tables, did you use Dimension limits or a set analysis ?

Quentin

dmac1971
Creator III
Creator III
Author

Dimension Limits :

=if(aggr(rank(sum([Sales])),[Customer])<=10,[Customer])

The expression then limits sales to 2012 :

=Sum({<[Year] = {"2012"}>}[Sales])

Should I be limiting the sales year within the dimension?

Anonymous
Not applicable

If you are using a straight table on QV 11, you can do this :

- In dimension tab, choose only Customer dimension.

- In dimension limits, choose to restrict the values and show only the 10 largest values and not show the others

- Then keep your expression.

Dimension Limits.PNG.png

dmac1971
Creator III
Creator III
Author

Perfect, thanks QB!!!!

Not applicable

Did you try:

=if(aggr(rank(sum({<[Year] = {"2012"}>}  [Sales])),[Customer])<=10,[Customer])

You select the top 10 customers based on the selection, and you sum your sales based on 2012.

Fabrice