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!Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
In the above picture, I want to replace NaN and infinity wth string "Not Applicable". What will be the Dax?
Solved! Go to Solution.
Hi @Anonymous ,
Here are the steps you can follow:
1. Create calculated column.
new =
IF(
[OldResult] in {1/0,0/0},
"Not Applicable",[OldResult]&"")
2. Result.
Best Regards,
Liu Yang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @Anonymous ,
Here are the steps you can follow:
1. Create calculated column.
new =
IF(
[OldResult] in {1/0,0/0},
"Not Applicable",[OldResult]&"")
2. Result.
Best Regards,
Liu Yang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
@Anonymous , Prefer to use divide and return blank() ,
Divide([Column1], [column2], blank())
Because "Not Applicable" is a text and the rest are numbers, the mixed data type is not allowed
if([column2] =0, "Not Applicable", [Column1]/[Column2] & "")
It is possible with if function in Power Query.
Check out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
| User | Count |
|---|---|
| 103 | |
| 80 | |
| 63 | |
| 50 | |
| 45 |