This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. We're covering it all. You won't want to miss it.
Learn moreDid you hear? There's a new SQL AI Developer certification (DP-800). Start preparing now and be one of the first to get certified. Register now
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
Check out the April 2026 Power BI update to learn about new features.
Sign up to receive a private message when registration opens and key events begin.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
| User | Count |
|---|---|
| 35 | |
| 32 | |
| 27 | |
| 23 | |
| 16 |
| User | Count |
|---|---|
| 65 | |
| 50 | |
| 30 | |
| 25 | |
| 24 |