Forum Discussion
Anonymous
5 years agoNot applicable
Replace "blank" with 0
Hi Community I know this have been posted so many times but have not found a solution that really works in my example. I hope you are able to help me. I have created a Table visualization tha...
- 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
PhilipTreacy
Super User
5 years agoHi Anonymous
So you've tried adding 0 to your calculation result
Click Through Rate =
DIVIDE(
DISTINCTCOUNT('Email - Clicks'[ACS ID]),
COUNTA('Email - Delivery'[ID])
) + 0
Or using IF
Click Through Rate =
VAR _CTR =
DIVIDE(
DISTINCTCOUNT('Email - Clicks'[ACS ID]),
COUNTA('Email - Delivery'[ID])
)
RETURN
IF(_CTR = BLANK(), 0, _CTR)
Regards
Phil