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.
Hey, everyone, I've been trying to calculate this, but I'm really stuck. Here is the problem:
I want to show in % the difference between months of 2016 and 2017. For example :
January 2016: 10
January 2017: 11
% diff: +10%
Thanks in advance 😄
Hi,
If the following conditions are met
then, this measure will work
=SUM(Data[Value])/CALCULATE(Data[Value]),PREVIOUSMONTH(Calendar[Date]))
Hope this helps.
Hi @nzboan,
You can use below formula to calculate the diff between current year month total and previous year month total.
Measure:
Diff = VAR CYM = CALCULATE ( SUM ( Records[Amount] ), FILTER ( ALLSELECTED ( Records ), YEAR ( [Date] ) = YEAR ( MAX ( [Date] ) ) && MONTH ( [Date] ) = MONTH ( MAX ( [Date] ) ) ) ) VAR PYM = CALCULATE ( SUM ( Records[Amount] ), FILTER ( ALLSELECTED ( Records ), YEAR ( [Date] ) = YEAR ( MAX ( [Date] ) ) - 1 && MONTH ( [Date] ) = MONTH ( MAX ( [Date] ) ) ) ) RETURN DIVIDE ( CYM - PYM, PYM, 0 )
Regards,
Xiaoxin Sheng
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.