Skip to main content
Announcements
Have questions about Qlik Connect? Join us live on April 10th, at 11 AM ET: SIGN UP NOW
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)