Forum Discussion
Anonymous
10 years agoNot applicable
Next Year calculation (dynamically) through FILTER() and Slicer
Hi All, I am trying to get next year value (dynamically through Year Slicer), but not able to do that. I am using below DAX to calculate next year value. It is returning blank. Measure = CALC...
- 10 years agohi AnonymousThis should worksMedida-SUMofValues-NextYear =
VAR Next_Year =
IFERROR ( VALUES ( 'Tabla Años'[Year] ) + 1; BLANK () )
RETURN
CALCULATE ( SUM ( 'Tabla Años'[Value] ); 'Tabla Años'[Year] = Next_YearLet me know.
ankitpatira
10 years agoCommunity Champion
Anonymous so for example, are you trying to get value 2016 when you select 2015 in Slicer ?
Anonymous
10 years agoNot applicable
Hi Ankit,
Thanks for your quick response. Yes, when I select 2015 in slicer value, then 2016 should be passed as filter in the table do the calculation. I also have one date master table and I tried all the options, but doesn't work.
Regards,
Niket Talati