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.
Hi, I have a calculated measure consisting of values, Infinity and NaN. Is there a dax of an if-statement to return only value, else it will return 0?
Solved! Go to Solution.
@Anonymous you can use iserror
if(iserror([measure]),0,[measure])
https://docs.microsoft.com/en-us/dax/iserror-function-dax
@Anonymous , Typically the () is because of formatting and actual number is negative. In that
A1+A2 should give you number required. But if you use abs somewhere, then use the base column/numner
@Anonymous you can use iserror
if(iserror([measure]),0,[measure])
@amitchandak That was so helpful! Last one from me. The bracket represents the absolute of negative numbers right? I want to add those two columns, so my expected answer is supposed to be ($8171) where it still consider the negative sign. but my previous measure (before I'm going to add this), is already an absolute formula. How can I solve this?
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.