Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more
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.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
Check out the October 2025 Power BI update to learn about new features.