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

Top 20 customer in a pivot table

Hi,  I need to pick my top 20 customer in a pivot table and som the sales. The dimensions I want to use is Company, SalesPerson and Year. Thus I dont want to show the customer but still calculate per customer.

So in eack cell below the sales value for the com´pany, salesperson and year should be shown, the will be different customers calculated.in each cell.

Can it be done and if so how?

//K

CompanySalesPeronYear2012201320142015
1A
1B
2C
2D
3E
3F
3G
3 Replies
krishna_2644
Specialist III
Specialist III

try


if(Aggr(rank(Sum({1}SalesQuantity)),[SalesPerson],Company,year)<=20,[SalesPerson])

Not applicable
Author

Hi Krishna,

No that does not work. I've tried several ways to solve this and

If(Aggr(Rank(Sum(SalesQuantity)), Company, SalesPerson, Year) <= 20, Sum(SalesQuantity))

If(Rank(Aggr(Sum({1}SalesQuantity), Company, CustomerNo, SalesPerson, Year)) <= 20, Sum(SalesQuantity))

Stil I need to have CustomerNo in the aggr function othervise I'll not aggegate over the customer.

/Klas

krishna_2644
Specialist III
Specialist III

can you post the qvw with some sample data.?