Skip to main content
Announcements
Introducing Qlik Answers: A plug-and-play, Generative AI powered RAG solution. READ ALL ABOUT IT!
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