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!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
Hi Guys,
Please refer the below screenshot.
I've created a measure for my model and don't understand what these NaN is coming in my visual.
Can anybody suggest me what is this.
Measure:
Regards,
Himanshu
Idealy 0/0 should be 0 but dont understand what is this NaN.
Solved! Go to Solution.
Hi @Anonymous ,
The NaN error occurs when you are dividing 0 by 0, in your case you can use a divide funciton with the additional parameter to your divide function to return whatever value you want in this case maybe 0 so redo your measure to:
Average Weighted Term Length (MWh) =
DIVIDE (
SUM ( View_DealClosing[Weighted Calc] ),
SUM ( View_DealClosing[Term Usage (MWh)] ),
0
)
Regards
Miguel Félix
Proud to be a Super User!
Check out my blog: Power BI em PortuguêsHi @Anonymous ,
The NaN error occurs when you are dividing 0 by 0, in your case you can use a divide funciton with the additional parameter to your divide function to return whatever value you want in this case maybe 0 so redo your measure to:
Average Weighted Term Length (MWh) =
DIVIDE (
SUM ( View_DealClosing[Weighted Calc] ),
SUM ( View_DealClosing[Term Usage (MWh)] ),
0
)
Regards
Miguel Félix
Proud to be a Super User!
Check out my blog: Power BI em PortuguêsThanks for the help !!!
It resolved my issue.
Regards,
Himanshu
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 56 | |
| 45 | |
| 35 | |
| 34 | |
| 21 |
| User | Count |
|---|---|
| 143 | |
| 122 | |
| 100 | |
| 80 | |
| 57 |