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

Announcements
ALERT: QlikView server communication interruptions following Microsoft Windows Domain Controller security updates
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

May be this:

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

View solution in original post

3 Replies
sunny_talwar

Top 5 sales overall or top 5 sales per Region?

Anonymous
Not applicable
Author

Top 6 sales overall

sunny_talwar

May be this:

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