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

Announcements
Posting on Qlik Community is temporarily paused for some users. Thank you for patience and we'll update you soon!
cancel
Showing results for 
Search instead for 
Did you mean: 
rohitians
Creator III
Creator III

Keeping rank static...

Hello,

I have this pivot chart where in have brands of different commpanies with their sales..

i have a rank code where in displaying rank according to the sales...

When i select a certaian company and suppose it has three brans with different ranks....but the ranking starts again from 1 and so on...

I want that even if i select brand or company the rank for that brand should remain static...

I am attaching sample data...

Thanks and Regards,

Rohit Yadav

Labels (1)
1 Solution

Accepted Solutions
Gysbert_Wassenaar
Partner - Champion III
Partner - Champion III

Try aggr(Rank(total (sum({1}Sales))),BRAND)


talk is cheap, supply exceeds demand

View solution in original post

3 Replies
Gysbert_Wassenaar
Partner - Champion III
Partner - Champion III

Try aggr(Rank(total (sum({1}Sales))),BRAND)


talk is cheap, supply exceeds demand
rohitians
Creator III
Creator III
Author

Hello,

It is working for the sample data but not for the actual one...

=Rank(total (SUM( {$<FiscalYear={$(=max(FiscalYear))}>} [Values])/10000000))

Thanks and Regards,

Rohit

Anonymous
Not applicable

Hi Please find attached qvw.