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

Announcements
April 13–15 - Dare to Unleash a New Professional You at Qlik Connect 2026: Register Now!
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
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