Forum Discussion
Dax formula - dealing with zero amounts
- Anonymous8 years ago
Here it is...
PERFORMANCE WINS =IF( ISBLANK([SUM OF WINS]),0,[SUM OF WINS])/ IF( ISBLANK([SUM OF TARGET WINS]),0,[SUM OF TARGET WINS]) *100
I have replaced the blank by 0, however you can change with your desired value.
Thanks
Raj
Your DAX is fine.
But are you sure, this is happening when one of the values is 0.
I tried the same and find below the result I got
Also "Fails to Calculate means" you mean it is returning NULL Values or is it giving an error?
If it is giving NULL Value, then your items should be having NULL as their value and not Zero.
Regards,
Thejeswar
Exactly. Your formula is straight forward and no issues with that. Any issues should be with your data and it may have NULL . Try using Isblank (value,0,value) if you have blank. Similarly handle NULL as well.
Thanks
Raj