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

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Top 6 Max Sales

Hi Guys,

I am trying to show top max sale, I have two dimensions Region and Company. I have descending order top max to lower sales.

I am trying to put this on dimension level.

=aggr(if(

max(rank(Sum({$<Month={$(=Month)}>} Sales)))

>=

max(rank(Sum({$<Month={$(=Month)}>} Sales))-5), Company) , Region, Company)

Could you please advise me what I am missing?

Kind regards,

Farrukh

Labels (1)
1 Solution

Accepted Solutions
sunny_talwar
MVP
MVP

May be this:

=Aggr(If(Rank(TOTAL Sum({$<Month={$(=Month)}>} Sales)) < 7, Company), Region, Company)

View solution in original post

3 Replies
sunny_talwar
MVP
MVP

Top 5 sales overall or top 5 sales per Region?

Anonymous
Not applicable
Author

Top 6 sales overall

sunny_talwar
MVP
MVP

May be this:

=Aggr(If(Rank(TOTAL Sum({$<Month={$(=Month)}>} Sales)) < 7, Company), Region, Company)