Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
4 years ago
Solved

%YoY doesn't work

I am new to Power BI and encountered a problem that:

 
It works fine in the prvious version of Power BI, but it always display zero in YoY in the latest version. Can anyone help?
 

 

Formula:

 

YoY% =
VAR __PREV_YEAR = CALCULATE(SUM('ACT'[COUNT]), DATEADD('ACT'[DATE].[Date], -1, YEAR))
RETURN
DIVIDE((SUM('ACT'[COUNT]) - __PREV_YEAR), __PREV_YEAR)
 
 
Display:
 

2 Replies