Skip to main content
Announcements
YOUR OPINION MATTERS! Please take the Qlik Experience survey you received via email. Survey ends June 14.
cancel
Showing results for 
Search instead for 
Did you mean: 
tellmalaika17
Contributor II
Contributor II

Total based on top 10 rows

Hi,

I need help with below requirement :

Pivot table - has two dimension category and customers. Need to derive at percentage of each customers spent on each category based on top 5 records. For eg :

 

Pivot Table-Top 5
CategoryCustomersCust1Cust2Cust 3Cust 4
A1030233478
B2020345698
C3010564545
D4050453233
E5040681222

Expected results : Get the % against each customers based on top 5 records. I have total of 283 records and i am showing only top 5 as of now. I am not able to get the Total no in the denominator to get the %. Please note these are count of transactions.

Script used - count(Total<Customer>,Category)

 

Pivot Table-Top 5
CategoryCust%Cust1 Cust2 Cust 3 Cust 4
A106.67%3020.00%2310%3419%7828%
B2013.33%2013.33%3415%5631%9836%
C3020.00%106.67%5625%4525%4516%
D4026.67%5033.33%4520%3218%3312%
E5033.33%4026.67%6830%127%228%
150 150 226 179 276

Any help will be appreciated.

Thanks,

Malaika

2 Replies
Anil_Babu_Samineni

Have you tried with dimension limits? And mean time you can use rank

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful
tellmalaika17
Contributor II
Contributor II
Author

Dimension limits can be used only in the straight table and not pivot table