Skip to main content
Announcements
See what Drew Clarke has to say about the Qlik Talend Cloud launch! READ THE BLOG
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

current & previous year

Hello,

I need to compare the sum(sales) of the current year with the previous one,

How can I do it ?

2 Replies
Gysbert_Wassenaar

Something like this:

Current year: sum({<Year = {'$(=year(today()))'>}sales)

Previous year: sum({<Year = {'$(=year(today())-1)'}>}sales)

Replace Year and sales with your field names.


talk is cheap, supply exceeds demand
Not applicable
Author

it works ! thank u