Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Rank function in calculated dimension

Good Day!

I'm making pivot table with dimesions and expressions described on the picture.

How can i use rank function in calculated dimension to select best 5 points of sales?

Many thanks for help!

1 Solution

Accepted Solutions
Gysbert_Wassenaar

Something like this: =aggr(if(rank(sum(Sales))<=5,[Sales Point]),[Sales Point])

Change Sales and Sales Point to reflect your real dimension names.


But try to use Dimension Limits instead. Those are less costly than calculated dimensions.


talk is cheap, supply exceeds demand

View solution in original post

3 Replies
Gysbert_Wassenaar

Something like this: =aggr(if(rank(sum(Sales))<=5,[Sales Point]),[Sales Point])

Change Sales and Sales Point to reflect your real dimension names.


But try to use Dimension Limits instead. Those are less costly than calculated dimensions.


talk is cheap, supply exceeds demand
MK_QSL
MVP
MVP

IF(Aggr(Rank(SUM([Qty of Sales]),4),[Sales Point]<=5,[Sales Point])

Tick Suppress When Value is Null

Expression

SUM([Qty of Sales])

Anonymous
Not applicable
Author

Dear, thank you.

It's working