Skip to main content
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

KPI Returns value from current and previous Year

excel table.jpg

Someone can give me a formula for previous year sum value, as shown in the pictures?

qlikimage.jpg

Current Year:

Sum({$<[Date] = {">=$(=Yearstart(Max([Date])))  <= $(=Date(Max([Date])))"}>} value)

Previous Year: ?

2 Replies
eduardo_sommer
Partner - Specialist
Partner - Specialist

Try with: Sum({$<[Date] = {">=$(=Yearstart(Max([Date]),-1))  <= $(=YearEnd(Max([Date]),-1))"}>} value)

Eduardo

sunny_talwar

Or this:

Sum({$<[Date] = {">=$(=YearStart(Max([Date]), -1))<=$(=YearStart(Max([Date])) -1))"}>} value)