Qlik Community

QlikView Scripting

Discussion Board for collaboration on QlikView Scripting.

Announcements

Breathe easy -- you now have more time to plan your next steps with Qlik!
QlikView 11.2 Extended Support is now valid through December 31, 2020. Click here for more information.

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

Re: How to sum last year.

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

2 Replies
Not applicable

Re: How to sum last year.

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

Not applicable

Re: How to sum last year.

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

Community Browser