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! Request now
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?
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.