Forum Discussion
Dom87326
4 years agoHelper II
KPI Visualization does not sum the data YoY
Hello, I'm trying to compare different time periods with Power BI KPI visuals and for that reason created following measures: Purchases = SUM('Purchases'[Quantity])
Previous Purchases...
aj1973
4 years agoCommunity Champion
Change the measure using SELECTEDVALUE[YEAR MONTH] as a VAR and CALCULATE the sum of Purchases filtering the selected value .
Dom87326
4 years agoHelper II
Hi again aj1973 ,
Well, I've changed the initial measure to:
Purchases =
VAR _YM = SELECTEDVALUE('Date'[Year Month])
VAR _CALC = CALCULATE (SUM('Purchases'[Quantity])), 'Date'[Year Month])
RETURN
_CALCHowever KPI still wouldn't return 2022 results.. Maybe I'm doing something wrong here?
Thanks!