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.
Hello to all,
I am pretty much new to Power BI and loving it! I'm still getting used to the Power BI terminology so please bare with me.
This is my Dax formula and I'm getting some "NaN" results. I would like to change this to "0". Could someone please help me?
Solved! Go to Solution.
Your formula gave me a DAX error. Figured it out to this. Thanks very much for the help!
use DIVIDE() function, like
PPM Externe Médical % Variance = DIVIDE(
CALCULATE(sum('Quality (Actuel)'[External PPM - Medical Actuel]) - (sum('Quality (Planifié)'[External PPM - Medical Planifié]))))
,
CALCULATE(sum('Quality (Planifié)'[External PPM - Medical Planifié]))
,
0
)
https://docs.microsoft.com/en-us/dax/divide-function-dax here is some details. you can replace 0 at the end to any value you wish to see instead of NaN
Your formula gave me a DAX error. Figured it out to this. Thanks very much for the help!
now its ok? or try this
PPM Externe Médical % Variance =
DIVIDE(
(
CALCULATE(SUM('Quality (Actuel)'[External PPM - Medical Actuel]))
-
SUM('Quality (Planifié)'[External PPM - Medical Planifié])
);
SUM('Quality (Planifié)'[External PPM - Medical Planifié]);
0
)
Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!
Check out the October 2025 Power BI update to learn about new features.
User | Count |
---|---|
10 | |
7 | |
5 | |
4 | |
3 |
User | Count |
---|---|
12 | |
11 | |
9 | |
8 | |
8 |