Skip to main content
Announcements
Live today at 11 AM ET. Get your questions about Qlik Connect answered, or just listen in. SIGN UP NOW
cancel
Showing results for 
Search instead for 
Did you mean: 
qlikconsult
Partner - Creator
Partner - Creator

Percentage % Total for Dimension in Pivot Table

Hey

Hope someone can assist me with the following

I have a pivot table with 2 expressions over three dimensions

The dimensions are:

Phase, Type and Side

The expressions are:

For Nr:

count(rowno)

For %:

count(rowno) / count(total rowno)

(See next image)

In the pivot table, I would like to show the % as summing up to 100%.r1.png

For example, in the image, in the column "CUT" under %, it should show 100% in the top total, and then for example General Play - Off-Side should show 20% (see image below where I have just filtered down to side). So, where it shows 2.41% in the top image, it should show 20%

r2.png

I have tried several different combinations of aggr functions, for example

sum(aggr( count(rowno) / count(total rowno),Side))

or count(rowno) / sum(aggr(count (total rowno),Side))

and a few others, but have not been able to resolve.

Do anyone have an idea which could help?

I'm attaching the model with the object (data reduced, so % can differ from mentioned above), hope this helps

1 Solution

Accepted Solutions
MK_QSL
MVP
MVP

Change your second expression as below..

count(Game_Activity_RowNo)

/

count(Total <Game_Side_Code> Game_Activity_RowNo)

View solution in original post

5 Replies
Not applicable

HI

PFA

qlikconsult
Partner - Creator
Partner - Creator
Author

Hi

Nirmal's attached file above seems to be exactly the same as what I attached

So just be clear,

on the example I attached with view:

r3.png

I need to see:

r5.png

MK_QSL
MVP
MVP

Change your second expression as below..

count(Game_Activity_RowNo)

/

count(Total <Game_Side_Code> Game_Activity_RowNo)

Not applicable

pfa

qlikconsult
Partner - Creator
Partner - Creator
Author

Wow, thanks Manish, that seems to have solved my problem