Skip to main content
Announcements
Have questions about Qlik Connect? Join us live on April 10th, at 11 AM ET: SIGN UP NOW
cancel
Showing results for 
Search instead for 
Did you mean: 
asmithids
Partner - Creator II
Partner - Creator II

Pivot Table Dimensionality()2 Total Used As Denominator for Dimensionality ()3 Expression

Hello,

I'm trying to create a "precent of total" expression (see attached screen shot).  The issue is that I need to have the denominator of the expression below be the subtotal amount of the previous dimension for all of the rows in the next dimension level.  Using the Aggr function in the current expression below, I was able to show the previous dimensions subtotal but, it is only showing the subtotal on the last row of the section. 

I think I'm close.  Can anyone push me over the line....?    Thank you!!

=Sum(quantity) / Aggr( Count(orderid),Store#,item_type)

1 Solution

Accepted Solutions
sunny_talwar

Can you try one of these:

=Sum(quantity)/Count(TOTAL <Store#, item_type> orderid)

or

=Sum(quantity)/Aggr(NODISTINCT Count(orderid),Store#,item_type)

View solution in original post

4 Replies
sunny_talwar

Can you try one of these:

=Sum(quantity)/Count(TOTAL <Store#, item_type> orderid)

or

=Sum(quantity)/Aggr(NODISTINCT Count(orderid),Store#,item_type)

asmithids
Partner - Creator II
Partner - Creator II
Author

You did it again Sunny! 

Thank you!!

sunny_talwar

Which one of the two worked? If both did, then I suggest using the 1st one since it is Aggr() free

asmithids
Partner - Creator II
Partner - Creator II
Author

I used the first one as we all know Aggr is resource heavy.