I have a Line Graph in PowerBI where I display the Revenue by Month for the past 5 years (so there are 5 lines) and MonthName is on the x-axis.
Right now I am using the following measure for each year:
Revenue (2016) := CALCULATE( SUM( Register[Total] ), 'Date'[CalendarYear]=2016)
So what I want to do is use dynamic measures where instead of having a measure for 2016, 2015, 2014...etc. I have a measure for the current year, the previous year, the year before that, etc...
Any advice?