Skip to main content
Announcements
NEW: Seamless Public Data Sharing with Qlik's New Anonymous Access Capability: TELL ME MORE!
cancel
Showing results for 
Search instead for 
Did you mean: 
manoranjan
Partner - Contributor II
Partner - Contributor II

Weight expression in multidimensional pivot table

I have a requirement to show weightage of Sales for each product within a Region/Country/State. In other words contribution of each product in Total sales for that dimension. In a straight table, it is very easy to this... by "selecting" the "Relative" checkbox for this expression.

But in a pivot table there is no "Relative" checkbox. As an alternative, in one of the discussions, it was mentioned to use the below

Sales/Sum(Total Sales) ... this works for a single dimensional pivot table. But in multidimensional pivot, the Sum(TOTAL Sales) actually aggregates the total sum of all products across regions, states.

I created a test document for the same. Someone kindly help me fix this.

1 Solution

Accepted Solutions
swuehl
MVP
MVP

You can actually use a field list with TOTAL qualifier, so try:

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

View solution in original post

2 Replies
swuehl
MVP
MVP

You can actually use a field list with TOTAL qualifier, so try:

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

manoranjan
Partner - Contributor II
Partner - Contributor II
Author

Thanks swuehl, I guess thats exactly what I want. Will try in the main dashboard now.