我有A列几万行,在data model中,我想用dax的Switch语句.
假设A列该单元格包含字母“T”或者包含“X"或者包含”P",则在B列显示“Internal sale",其他则显示”Exter sale“.
重点是这个包含应该用什么表示?我用通配符*,%,都试过都不行。
=switch(true(),
Table1[Sold to] = "*P*","Interco",
Table1[Sold to] = "*T*","Interco",
Table1[Sold to] = "*X*","Interco",
"Exter"
)
谢谢了