Forum Discussion
Anonymous
3 years agoNot applicable
YOY - Year wise comparison
I have Five years data in the Excel . data has been loaded in to Power bi . i want find the percentage of YOY comparison. year vaule Month 2021 450 Jan -21 2...
FreemanZ
Super User
3 years agohi Anonymous
try to plot any visual with year column and a measure like:
YoY% =
VAR _valuepre =
CALCULATE(
SUM(TableName[Value]),
TableName[Year] = MAX(TableName[Year])-1
)
VAR Result =
DIVIDE(
SUM(TableName[Value]),
_valuepre
)-1
RETURN
IF(
_valuepre<>BLANK(),
Result
)it worked like:
p.s. as suggested by joht75, in the long run, you shall be working with dedicated date tables.