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!Vote for your favorite vizzies from the Power BI Dataviz World Championship submissions. Vote now!
I have the following measure that calculates % change
As mentioned works fine other than this, and even works fine for if both values are 0, as expected 0% change is shown:
It also works fine if the current year value is 0 and previous year is greater than 0.
Any help appreciated.
@Anonymous , Try like
measure =
_Num = CALCULATE ( (DISTINCTCOUNT('Table'[ID])),
FILTER(ALL('Date'[FY]),
'Date'[FY] = MAX('Date'[FY])))
VAR _Den =
CALCULATE (
DISTINCTCOUNT('Table'[ID]),
FILTER(ALL('Date'[FY]),
'Date'[FY] = MAX('Date'[FY])-1))
VAR _PercentChange = divide(_Num-_Den),_Den ,0)
RETURN
_PercentChange
Hi @amitchandak , this measure just returns a blank % change. (I had to add another open bracket after the divide fucntion to get the measure to work, but yes still returns blank value)
Vote for your favorite vizzies from the Power BI World Championship submissions!
If you love stickers, then you will definitely want to check out our Community Sticker Challenge!
Check out the January 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 65 | |
| 52 | |
| 45 | |
| 23 | |
| 21 |
| User | Count |
|---|---|
| 141 | |
| 113 | |
| 50 | |
| 37 | |
| 30 |