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

Announcements
Independent validation for trusted, AI-ready data integration. See why IDC named Qlik a Leader: Read the Excerpt!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Rank Function

I want to create following pivot table that shows rank of products.

Market 2Market 2
PrroductSalesRankSalesRank
P11003504
P220025001
TOTAL300550


But when I created this in qlikview pivot table I got the following results. Its showing the rank of products by market and is not what I

Market 2Market 2
PrroductSalesRankSalesRank
P11002502
P220015001
TOTAL300550


I am using this expression to calculate rank.

Rank(TOATAL sum(Sales))

Can any one help me how to calculate rank as shown in first table?

1 Solution

Accepted Solutions
Not applicable
Author

Hi,

You need to use a function AGGR into your expression.

View solution in original post

2 Replies
Not applicable
Author

Hi,

You need to use a function AGGR into your expression.

Not applicable
Author

Great!

Exactly what I needed.

Thanks again.

Zubair.