有没有一种方法可以在Power BI内部做一个专门写成的case语句M
?
我有看起来像这样的列:
col_a col_b col_c
steve smith steve smith
null james james
sally null sally
Col_c
是列a和b的串联。如果列a或b为空,那么无论如何我都希望列c为空。
有什么建议?
M有一个相当标准的if
,then
,else
语法。
if [col_a] = null or [col_b] = null
then null
else [col_a] & " " & [col_b]
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句