Forum Discussion
Is there a dax to return only value, else it will return 0?
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?
Anonymous you can use iserror
if(iserror([measure]),0,[measure])
3 Replies
- amitchandak
Super User
Anonymous you can use iserror
if(iserror([measure]),0,[measure])
- AnonymousNot applicable
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?
- amitchandak
Super User
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