Hi I met a problem in DAX. The function I want to achieve: in the A column, whenever it contains the word "TPT" or word "TFT", then it returns "internal customer" in B column. The rest returns "external customer".
I know how to do it in SQL, is like update.. where ..like '%TPT%' or .. like '%TFT%'
But when I added the table to data model and tried to use similar wildcard way in DAX, it didn't work. I have tried *,%,^, all didn't work.
It would be great helpful if someone could suggest. Thanks in advance.
=switch(
true(),
Table1[customer] = "*TPT*","Internal customer",
Table1[customer] = "*TFT*","Internal customer",
"External customer"