Skip to main content
Announcements
Accelerate Your Success: Fuel your data and AI journey with the right services, delivered by our experts. Learn More
cancel
Showing results for 
Search instead for 
Did you mean: 
Aspiring_Developer
Creator III
Creator III

Take the division of total values in Qliksense Pivot Table

Hello All ,

I have below pivot table in Qliksense:-

Aspiring_Developer_2-1675176337673.png

Measure 1- Count(issue)  | Measure 2- sum(open_working_days)

I want to add one more column here named profile like below  and it should follow below calculation :-

Aspiring_Developer_1-1675176210315.png

For Ethernet --- 76/8 = 9.50

LLU -- 806/26= 30.96 and so on 

Can anyone please help on this ?

Thanks in advance

 

Labels (1)
1 Solution

Accepted Solutions
Aspiring_Developer
Creator III
Creator III
Author

Hello All ,

I was able to solve it :-

Took the total of each row in pivot like below :-

Sum(Aggr(sum(OPEN_WKG_DAYS), CATEGORY, AGE_BAND_WKG))

Sum(Aggr(Count(ISSUE_NO), CATEGORY, AGE_BAND_WKG))

Aspiring_Developer_0-1675926283010.png

 

And then divided  the total  expression :-

Sum(Aggr(sum(OPEN_WKG_DAYS), CATEGORY, AGE_BAND_WKG))
/

Sum(Aggr(Count(ISSUE_NO), CATEGORY, AGE_BAND_WKG))

 

Reference Solution URl:-

Solved: Qlik Sense - Totalling row sum in a pivot table - Qlik Community - 9895

Thanks to @sunny_talwar 

Thanks

View solution in original post

2 Replies
Oleg_Troyansky
Partner Ambassador/MVP
Partner Ambassador/MVP

Hi there,

AFAIK, you can't create a pivot table that looks EXACTLY the way you show it in your  second image. If you can live with the additional column to appear before the Measures and not after, then you can possibly add a calculated  Dimension, with the use of the function AGGR(), to calculate the desired ratio. Something like this:

AGGR( sum(open_working_days)/Count(issue), Category)

You could also use the function Dimensionality() to only calculate this result at a certain level of totals.

Allow me to invite you to my session on Set Analysis and AGGR at the Masters Summit for Qlik, where I will be teaching some of these advanced techniques of using Set Analysis and AGGR() for advanced analytics.

Cheers,

Aspiring_Developer
Creator III
Creator III
Author

Hello All ,

I was able to solve it :-

Took the total of each row in pivot like below :-

Sum(Aggr(sum(OPEN_WKG_DAYS), CATEGORY, AGE_BAND_WKG))

Sum(Aggr(Count(ISSUE_NO), CATEGORY, AGE_BAND_WKG))

Aspiring_Developer_0-1675926283010.png

 

And then divided  the total  expression :-

Sum(Aggr(sum(OPEN_WKG_DAYS), CATEGORY, AGE_BAND_WKG))
/

Sum(Aggr(Count(ISSUE_NO), CATEGORY, AGE_BAND_WKG))

 

Reference Solution URl:-

Solved: Qlik Sense - Totalling row sum in a pivot table - Qlik Community - 9895

Thanks to @sunny_talwar 

Thanks