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

Announcements
Qlik Connect 2026! Turn data into bold moves, April 13 -15: Learn More!
cancel
Showing results for 
Search instead for 
Did you mean: 
josemaria_cabre
Contributor III
Contributor III

Set analysis sum

Hi Everyone,

I have following Table:

1.png

My objective is to sum only items greater than Last Year. 

In this example, this would be items c,d,e and g and expected result is 42 (8+10+15+9).

I tried to accomplish this, using expression: 

=Sum({<ThisYear={'=ThisYear>LastYear'}>} ThisYear)

2.png

As you can see, item d is greater ThisYear than LastYear, but it doesn't appear in table. What am I doing wrong?

Thanks in advance for your help.

Jose.

Labels (1)
1 Solution

Accepted Solutions
Gysbert_Wassenaar
Partner - Champion III
Partner - Champion III

Try: =Sum({<[item]={'=sum(ThisYear)>sum(LastYear)'}>} ThisYear)

talk is cheap, supply exceeds demand

View solution in original post

1 Reply
Gysbert_Wassenaar
Partner - Champion III
Partner - Champion III

Try: =Sum({<[item]={'=sum(ThisYear)>sum(LastYear)'}>} ThisYear)

talk is cheap, supply exceeds demand