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

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
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 ?

Labels (1)
2 Replies
Gysbert_Wassenaar
Partner - Champion III
Partner - Champion III

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