Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

How to sum last year.

I select  current year(don't care Month) from list box for sum product but i don't know scrip to sum product last year.

Ex

ItemSum all 2014Sum all 2013
1013000?
1024000?

anyone have a idea?

1 Solution

Accepted Solutions
Not applicable
Author

sum({<Year={$(=Max(Year)-1)}>} <your field>)

View solution in original post

2 Replies
Not applicable
Author

sum({<Year={$(=Max(Year)-1)}>} <your field>)

Not applicable
Author

please help.If i want to sum all last year.what code look like.