Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.
As showing in the above graph, the cloumn of YoY and past year value are all blanks for year 2022, but we have the data for 2021.. But if I also tick 2021 in Year slicer, then values will be there:
the code for ASP YoY is:
ASP YoY =
VAR __PREV_YEAR =
CALCULATE(
[ASP (Unit)],
DATEADD('02-01-01 COPA Posting Date'[Full Date], -1, YEAR)
)
RETURN
DIVIDE([ASP (Unit)] - __PREV_YEAR, __PREV_YEAR)
I also created individual last year value:
ASP_PY = CALCULATE([ASP (Unit)],DATEADD('02-01-01 COPA Posting Date'[Full Date],-1,YEAR))
ASP YoY1 = ([ASP (Unit)]-[ASP_PY])/[ASP_PY]
Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!
Check out the September 2025 Power BI update to learn about new features.