已使用以下代码创建自定义列,但它卡在无法识别 SWITCH 函数的表达式错误:
= Table.AddColumn(#"Removed Columns", "Empolyees", each SWITCH([Index],
1, Empolyees = "Chris1",
2, Empolyees = "Chris2",
3, Empolyees = "Chris3",
4, Empolyees = "Chris4",
5, Empolyees = "Chris5",
6, Empolyees = "Chris6",
7, Empolyees = "Chris7",
8, Empolyees = "Chris8",
BLANK()
))
我试过删除引号,更改列名,但都无济于事。请指教。提前致谢!