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

Announcements
Join us in NYC Sept 4th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

compare value of year N and year N-1

Hello,

I need to have two colomns where in each lines i have the value of year N (in first field) and year N-1 (in second field).

For a better understanding here is an exemple:

YearNet Year NNet Year N-1
20139
2014149
20151014
20161710
20172517


I used the following expression:

Sum({<Year={"$(=(Year(AddYears(Date('01/01/'& Year),-1))))"}>}TOTAL  [Net])

But the problem is that it work only when i select value in colmn "year"

thank you.

2 Replies
sunny_talwar

Try these two expression

Net Year N

Sum(Net)

Net Year N-1

Above(Sum({<Year>} Net)) * Avg(1)

sunny_talwar