Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
PepeMontes
Partner - Contributor III
Partner - Contributor III

Sum Current months vs same months but last year.

Hello dear Experts,

I am looking for an expression that allows me to calculate the sum of the sales of the months that have elapsed of the year vs. the same months but of the previous year. like this:
2020 Jan - Apr vs 2019 Jan - Apr.

For the Max year im using the next expression:
Sum({<[Year] = {$(=(Max(Year)))}>}Sales)

But I don't finish solving how to take the same months of the last selected year without having to enter them in a filter.

Someone did something like this before?

I really would appreciate any help.

Regards.

0 Replies