Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Ignoring dimension for calculating sum

I have the following chart in QV. Line , Date , Type and Product are the dimensions while Qty and Type Total are the expressions.

In the chart Qty is being calculated correctly using the formula : sum ({<ProductType = {'Ace'},MatchNo = {'*ZZ'} >} Qty)

But I am not able to get the Type Total correctly. I want the Type total to be calculated ignoring the product column. Like in the following chart for X1 , 04/08/2013 and Type C - Type Total should be 45 in both the rows.

 

 

LineDateTypeProductQtyType Total
X14/8/2013AP12020
Total20
BP13030
Total30
CP11545
P23045
1 Solution

Accepted Solutions
Gysbert_Wassenaar
Partner - Champion III
Partner - Champion III

Try sum ({<ProductType = {'Ace'},MatchNo = {'*ZZ'} >} TOTAL <Line,Date,Type> Qty)


talk is cheap, supply exceeds demand

View solution in original post

3 Replies
Gysbert_Wassenaar
Partner - Champion III
Partner - Champion III

Try sum ({<ProductType = {'Ace'},MatchNo = {'*ZZ'} >} TOTAL <Line,Date,Type> Qty)


talk is cheap, supply exceeds demand
Not applicable
Author

Thanks! it added one more row and I was able to hide that using Suppress Null check box from dimension

SunilChauhan
Champion II
Champion II

Try this


sum ({<ProductType = {'Ace'},MatchNo = {'*ZZ'},ProductType = >} Qty)





hope this helps

Sunil Chauhan