Skip to main content
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
cancel
Showing results for 
Search instead for 
Did you mean: 
nancy_sbeity
Partner - Contributor III
Partner - Contributor III

Disregard a Dimension in calculation in a Pivot Table

Hello,

I really need your help in the following case:

This is an example of my Pivot table:

Item\CategoryCategory1Category2
Item1sum(Sales in Category1 and Item1) / sum(Sales in all the categories and In Item 1)...
Item2......

So My purpose is to get the sum of sales of each row and column, divided by the sum of sales of the row in all the columns.

I used the following measure: sum(Sales) / sum({1<Category= >}Sales) but I didn't get the right answers.

Any idea?

Thank you in Advance,

Nancy

1 Solution

Accepted Solutions
swuehl
MVP
MVP

Sum(Sales) / Sum(TOTAL<Item> Sales)

TOTAL qualifier is essentially telling QV to disregard all dimensions, by adding an optional field list in angle brackets, these fields will still be regarded (and I understand that you still want to regard Item dimension).

View solution in original post

2 Replies
sunny_talwar

Try this:

sum(Sales) / sum(TOTAL <Category> Sales)

swuehl
MVP
MVP

Sum(Sales) / Sum(TOTAL<Item> Sales)

TOTAL qualifier is essentially telling QV to disregard all dimensions, by adding an optional field list in angle brackets, these fields will still be regarded (and I understand that you still want to regard Item dimension).