Forum Discussion
RodrigoTXRA
Helper I
8 years agoDax formula - dealing with zero amounts
Hi All Hope someone can shed some light on this formula below. Long story short, it works well as long as all the items contains some type of value, as soon as one of the items is ZERO, this formu...
- 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
RodrigoTXRA
Helper I
8 years agoThejeswar Thanks so much for the effort in analysing this query.
I believe the issue is when the data is NULL - see below and appreciate your thoughts on this
Thejeswar
Super User
8 years agoAny tool when it has NULLs in the calculation, returns NULL. Because NULLs cannot be equated to any value automatically
So in this case replace NULLs with Zero wherever needed.
That should solve the issue!!!