Skip to main content
Announcements
NEW: Seamless Public Data Sharing with Qlik's New Anonymous Access Capability: TELL ME MORE!
cancel
Showing results for 
Search instead for 
Did you mean: 
MK_QSL
MVP
MVP

TOP 5 in PIVOT TABLE

I have sales table for different branches…

What I need is a pivot table with Dimensions

Branch Code

Sales Operator

Month

Expression : SUM(Sales)

I need a pivot table showing top 5 sales operator of each branch and their monthly sales achievements.

If I select Branch 01... result would be something like below...

Branch CodeSales OperatorMonthTotalMayAprilAugustJulyJuneSeptember
Branch 01pshan 105,70615,13915,87627,37618,80117,56710,948
Branch 01keitr 72,90212,9199,57714,46010,90812,48112,556
Branch 01tferg 64,92014,59613,6806,73916,98511,4791,442
Branch 01fiqba 57,9378,5056,77110,87810,7808,71412,289
Branch 01antoc 42,6018,3586,0457,2339,7116,0825,172
12 Replies
Anonymous
Not applicable

I have used below expression but it is not wrking

=if(AGGR(RANK(SUM(Sales,GetCurrentField('GroupName')<=5,GetCurrentField(GroupName'))


MK_QSL
MVP
MVP
Author

Try this

if(Aggr(Rank(SUM(Sales)),$(=GetCurrentField(GroupName)))<=5, $(=GetCurrentField(GroupName))

vipin_mishra479
Creator II
Creator II

Hi manish,

Use This qvw.