Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content
Announcements
April 9th: The AI Roadmap: 6 Landmarks for AI-ready Data and Analytics: REGISTER NOW
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Display values of previous year

Hi all,

I would like to display the values of the previous year in a specific format. I can't seem to manage to display the numbers as shown in the table below...Do you have any suggestions how to realize this?

YearMonthActual ValuePrevious Year
20161

10

0
20162200
20163300
201711510
201722520
201733530

It should be in such a way that when you filter on 2017 month 1, it should also display the same values...

Does someone has the experience to realize this?

Thanks in advance!!

3 Replies
sunny_talwar

What are you expressions that you are using right now?

Anonymous
Not applicable
Author

Thanks for your reply!

Previous Year=SUM({$<Year={$(=MAX(Year)-1)}>}Value)

This gives a 0 for 2017 and only shows data for 2016

sunny_talwar

How about this

Aggr(Above(Sum({<Year, Month>}Value)), Month, Year)