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

Announcements
FLASH SALE: Save $500! Use code FLASH2026 at checkout until Feb 14th at 11:59PM ET. 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