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
hi,
@Anonymous
I have a measure like below
@vjnvinod
The TRUE part of the IF function returns zero in this case, check your data and validate it.
Using "N/A" is not a good practice as it is a text where as your true part of the formula returns numbers.
⭕ Subscribe and learn Power BI from these videos
⚪ Website ⚪ LinkedIn ⚪ PBI User Group
I changed the formula to like below
instead of NA, if I call the variable with a number, it works. I think it's not picking up the text
for example, now I have used the below DAX
how do i make this 2 TO "n/a"?
Hi Amit, Can you help?
I think it's a small change I need in the below code.Instead of number, i need a text like "n'a"
Hi @vjnvinod ,
In my example data, your formula can return "N/A". Please check if your data is aggregated causing the measure to return 0. For example, Id 4 has 4 rows of data, when I add Column1 into this visual (i.e. at Column1 level), the measure will return N/A, blank and 0. But if I don't add column1 (i.e. at Id level), the measure will return the value 1.14. This is because the context of measure changes, and it will calculate ( 6 + 2 + 0 ) / ( -3 + 0 + 5 + 5 ) = 1.14.
If the problem is still not resolved, please provide detailed error information or the expected result you expect. Let me know immediately, looking forward to your reply.
Best Regards,
Winniz
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
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.