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" )
Anonymous
4 years agoNot applicable
Actually the categories work fine for all cells, except the empty cells.
The empty cells return "private". So somehow the Isblank part of the formula doesn't work properly.
tamerj1
4 years agoCommunity Champion
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"
)