Forum Discussion
Replace "blank" with 0
- 5 years ago
Hi Anonymous
I've set up some dummy data and adding 0 to the measure gives me 0 when the result is blank.
Regards
Phil
Hi Anonymous
Using your own PBIX file I don't have a problem it works as expected. If I force DIVIDE to return BLANK(), by adding 0 to that result I get 0 for CTR.
Click Through Rate =
DIVIDE(
DISTINCTCOUNT('Email - Clicks'[ACS ID]),
//COUNTA('Email - Delivery'[ID])
BLANK()
) + 0
If you are concerned about the red column in your tablew, that is because CTR is now returning 0 instead of BLANK and your conditional formatting is set to show red with a value of 0.
When you say my suggestions are not working, what exactly isn't working? What result are you getting that you are not expecting?
Regards
Phil
- Anonymous5 years agoNot applicable
The below is using an example where the table is filtered to only show ID = DM129369
When I am not adding zero for CTR this is what I see - and are correct:
When adding the zero to the measure I get this result:
As you might see I suddenly get a lot a "Sales Companies" which I should not get as DM129369 is only for Sales Company = GIN