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

Announcements
Join us to spark ideas for how to put the latest capabilities into action. Register here!
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

sum last year

How can I calculate the sum of CA for all last year

sum((last year) ca ) ?

1 Solution

Accepted Solutions
qlikviewwizard
Master II
Master II

Sum({<Year={$(=YEAR(TODAY())-1)}>} CA)

View solution in original post

3 Replies
gautik92
Specialist III
Specialist III

Sum({<Year={$(=Max(Year)-1)}>}ca)

qlikviewwizard
Master II
Master II

Sum({<Year={$(=YEAR(TODAY())-1)}>} CA)

oleggggggM
Contributor III
Contributor III

How do you calculate the SUM for ALL previous years? If the user selects the Year 2021, he will see two KPIs: (1) TOtal sales for 2021; (2) Total sales for all previous years (2015-2021)? thank you!