Hi guys,
Please help with this DAX
I need show the value by select YEAR vs PREVIOUS YEAR
I am using this expression:
Max Year = CALCULATE(SUM(MyTable[REAL]); FILTER ('TIMEDIM'; TIMEDIM[YEAR]=MAX(TIMEDIM[YEAR]) ) )
this return Real value of year
and
Previous Year = CALCULATE(SUM(MyTable[REAL]); PREVIOUSYEAR('TIMEDIM'[DATE]))
However when I put this measures in my table i have a repeat of previous year for all months
Like this
I have date from:
Year 2016 2015
Month Month
apr 10
jun 5 7
jul 4
However when i show in table i have all months with value 7
YEAR actual Previous
jan 7
feb 7
mar 7
apr 10 7
may 7
jun 5 7
jul 4 7