基于长度的自定义列

问题描述 投票:0回答:1

我正在尝试根据文本列的长度添加自定义列,即

column 1
(其中包含文本和 ID 号)。但下面的代码给出了错误。有办法解决这个问题吗?

  #"Added Custom" = Table.AddColumn(#"previous stem", "Custom", each if Text.Length[column1] <> 6 then [column2] else[column3])

enter image description here

excel powerbi powerquery powerbi-desktop m
1个回答
0
投票

尝试将其添加到自定义列对话框中。

if Text.Length([column1]) <> 6 then [column2] else[column3]
最新问题
© www.soinside.com 2019 - 2025. All rights reserved.