Forum Discussion
Anonymous
6 years agoNot applicable
Acumulated function ignoring slicer
I´m having dificult with a measure , I have a Slicer that filters months , another that filters year, but I want a measure to calculate the sum of the year to that month selected. the problem is that...
Anonymous
6 years agoNot applicable
v-diye-msft
6 years agoCommunity Support
Hi Anonymous
Try below measure:
YTDPlan = var a = IF(HASONEVALUE('Base Act W&D _ SAP'[Year]),SELECTEDVALUE('Base Act W&D _ SAP'[Year]),BLANK())
Return
CALCULATE(SUM('Base Act W&D _ SAP'[Plano 2020.Value]),FILTER(ALL('Base Act W&D _ SAP'),[Data max Filtro]>=MONTH('Base Act W&D _ SAP'[Date])&&YEAR('Base Act W&D _ SAP'[Date])=a))
Pbix attached.