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

How to show Top20 rows in Pivot table?

Hello, I need to show top20 products that have maximum sales in a specific period, in a specific time, in a specific shop .. . .
I can do that in Straight table by using the limiting option in dimension tab, but pivot table doesn't allow me to do.
Anyone, can come up with the solution for me? Thanks in advance.

1 Solution

Accepted Solutions
AbhijitBansode
Specialist
Specialist

Try using Rank function in calculated dimension:

If( Aggr(Rank(Sum(Sales)),<PeriodField>,<ShopField>)<=20,Product)

View solution in original post

3 Replies
AbhijitBansode
Specialist
Specialist

Try using Rank function in calculated dimension:

If( Aggr(Rank(Sum(Sales)),<PeriodField>,<ShopField>)<=20,Product)

Not applicable
Author

If( Aggr(Rank(Sum(Sales)),<PeriodField>,<ShopField>)<=20,Product)


This one ranks and filters top20, but on the measure, it should show measure (Sales), but here its showing me Products name in measure area.    

AbhijitBansode
Specialist
Specialist

use Sum(Sales) as Expression to your pivot table.