Skip to main content
Announcements
Qlik Introduces a New Era of Visualization! READ ALL ABOUT IT
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Pivot table proportion of a column

Hi,

I have a pivot table with three columns: sales, proportion %, and cummulative sales. My issue is when I calculate proportion of sales, I do the following:

sum(Sales)/sum(total(Sales)

The problem is total function evaluates sales over every dimension and I'm interested in the proportion of sales relative to its column total which is based on month. I've attached an example for you to see. If no month is selected, the proportion of sales is incorrect. If a month is selected, the proportion of sales/column sums correctly. My goal is to show the proportion of sales per month.

Hope this explanation's clear. Let me know if you have any questions and thanks in advance for the help.

Matt

1 Solution

Accepted Solutions
jonathandienst
Partner - Champion III
Partner - Champion III

Matt

sum(Sales)/sum(total<Month> Sales)

should so the trick

Hope that helps

Jonathan

Logic will get you from a to b. Imagination will take you everywhere. - A Einstein

View solution in original post

2 Replies
jonathandienst
Partner - Champion III
Partner - Champion III

Matt

sum(Sales)/sum(total<Month> Sales)

should so the trick

Hope that helps

Jonathan

Logic will get you from a to b. Imagination will take you everywhere. - A Einstein
Not applicable
Author

Worked perfectly.

Thank you very much for your help Jonathan!

Matt