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.
Anonymous
10 years agoNot applicable
Hi Baskar,
I followed the same steps, but still it is returning blank. I have attached below screenshot.
DataReport
Please let me know where I am wrong?
Thank you,
Niket Talati
Vvelarde
Community Champion
10 years agohi Anonymous
This should works
Medida-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_Year
VAR Next_Year =
IFERROR ( VALUES ( 'Tabla Años'[Year] ) + 1; BLANK () )
RETURN
CALCULATE ( SUM ( 'Tabla Años'[Value] ); 'Tabla Años'[Year] = Next_Year
Let me know.
- Anonymous10 years agoNot applicable
Hi Baskar,
One of the provided solution worked. I have selected the correct answer.
Regards,
Niket Talati
- Anonymous10 years agoNot applicable
Thank you bro! It works!!
- Baskar10 years ago
Resident Rockstar
Can u please share how to u solved the issue it will help others.
if okay then close the ticket