Skip to main content
Announcements
See what Drew Clarke has to say about the Qlik Talend Cloud launch! READ THE BLOG
cancel
Showing results for 
Search instead for 
Did you mean: 
gidon500
Creator II
Creator II

5 largest Customers for agents

Hello

Enclosed is a qlik document

it show in pivot table

agent  , customers and total sales

i was to show only the 5 biggest customers , form each agent  .

the manager what to see who are the biggest customer for each agent

thanks for your help

gidon

1 Solution

Accepted Solutions
effinty2112
Master
Master

Hi Gidon,

Try this pivot table:

AGENTCODE Customer Sum(SALES)
166123025144
10047870
104602225
16712553297479
9424170439
7071272471
174183402
9430304320
16810657146926
12274460324
1094299230
10621145340
7329292258

Customer is the calculated dimension:

=Aggr(If(Rank(Sum(SALES))<=5,CUSTNAME),AGENTCODE,CUSTNAME)

Regards

Andrew

View solution in original post

3 Replies
effinty2112
Master
Master

Hi Gidon,

Try this pivot table:

AGENTCODE Customer Sum(SALES)
166123025144
10047870
104602225
16712553297479
9424170439
7071272471
174183402
9430304320
16810657146926
12274460324
1094299230
10621145340
7329292258

Customer is the calculated dimension:

=Aggr(If(Rank(Sum(SALES))<=5,CUSTNAME),AGENTCODE,CUSTNAME)

Regards

Andrew

gidon500
Creator II
Creator II
Author

Hi Andrew

thanks for your fast response

I got one more line without CUSTNAM

PIC11.png

How can I fix it

thanks

gidon

effinty2112
Master
Master

Hi Gidon,

In the pivot table's dimension tab click the checkbox for Suppress When Value Is Null.

Regards

Andrew