Forum Discussion
Anonymous
4 years agoNot applicable
Calculated Column
Hey all, I've got a column containing e-mail adresses. I need to categorize this into three groups: An e-mail containing the string "unknown" should be categorized as "unknown" An empty cell sho...
- 4 years ago
Anonymous
Try
Type E-mail = SWITCH ( TRUE (), CONTAINSSTRING ( 'Data'[e-mail], "*onbekend*" ), "unknown", 'Data'[e-mail] = BLANK (), "unknown", CONTAINSSTRING ( 'Data'[e-mail], "*jnj*" ), "business", "private" )
johnt75
4 years agoSuper User
Check that the cells are truly empty as opposed to having an empty string or a space character or something
- Anonymous4 years agoNot applicable
Hey Johnt75. I did check them for spaces or something. The cells are truly empty.
- johnt754 years agoSuper User
There doesn't appear to be anything wrong with the SWITCH statement. You could add a new column
Is Blank = ISBLANK ( 'Data'[e-mail] )and see if that gives the expected results