Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
QlikToFindOut
Creator
Creator

How to use set analysis to calculate percentage between dimensions in a pivot table?

Hello,

I'm currently using set analysis to calculate the overall percentage a row in a pivot table is part of for the overall amount. For example, I have a pivot table that resembles the following:

Dimension 1Dimension 2Dimension 3Sales %
Beverage70%
Juice30%
Apple Juice20%
Lemonade70%
Orange Juice20%
Soda60%
Coke2%
Dr. Pepper98%
Alcohol10%
Blue Moon100%
Food30%

Something like the above.

I was thinking of using something like:

sum({<CurYTDFlag = {1}>} TOTAL) / sum(Total)

But then I'm at a loss on how to incorporate Dimension1, Dimension2, and Dimension3 up above because as its collapsible, I wouldn't know how to catch those conditions. Any help would be appreciated, thank you!

2 Replies
sunny_talwar

Can you share the raw data behind this and what is the expected output based on collapsed and non-collapsed dimension

QlikToFindOut
Creator
Creator
Author

Sorry, I wasn't clear. The final output of what I want is the Sales % column. That is the expected output. I'm trying to write a set analysis expression that will do what I have shown in that last column.