Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Compairing Same Data from Different Years

I'm trying to compare the qty sold of items, but I only want to see on my Pivot Table the items that repeat in both 2016 and 2017, how should I do it?

So in the example below, I want to see only item 553, since it sold both in 2016 and 2017 while 554 only sold in 2016.

QlikView Help.png

I'm currently using 2 expressions like this:

Sum(If(Year='2016', QTY))

Sum(If(Year='2017', QTY))

I tried using AND as in Sum(If(Year='2016' AND SUM(IF(Year='2017',QTY) ) <> 0, QTY)), but it didn't work. Any idea?

Thanks!

1 Solution

Accepted Solutions
balar025
Creator III
Creator III

Hi,

Please find attached application

-Ravi Balar

View solution in original post

3 Replies
tomasz_tru
Specialist
Specialist

You'd better use set analysis and P() function:

Set modifiers with implicit field value definitions ‒ Qlik Sense

balar025
Creator III
Creator III

Hi,

Please find attached application

-Ravi Balar

Anonymous
Not applicable
Author

Thanks a lot! That worked perfectly!