Power Query / Power BI-将空值替换为另一列中的值

时间:2020-04-06 09:36:14

标签: powerbi powerquery

尽管“未检测到语法错误”,我仍然遇到以下错误,但我遇到了错误:

Expression.Error:无法识别名称“ each_”。确保拼写正确。

以下是包括最后一行在内的代码行,由于某些原因,这显然是问题所在。 (我正在尝试将“日期”列中的空值替换为“ PS源文件名-Copy.1”列中的值)

非常感谢您的帮助。

#"Split Column by Delimiter1" = Table.SplitColumn(#"Reordered Columns", "APS Source File Name - Copy", Splitter.SplitTextByEachDelimiter({" "}, QuoteStyle.Csv, false), {"APS Source File Name - Copy.1", "APS Source File Name - Copy.2"}),
#"Changed Type3" = Table.TransformColumnTypes(#"Split Column by Delimiter1",{{"APS Source File Name - Copy.1", type date}, {"APS Source File Name - Copy.2", type text}}),
#"Reordered Columns1" = Table.ReorderColumns(#"Changed Type3",{"APS Source File Name", "APS Source File Name - Copy.2", "APS Source File Name - Copy.1", "Date"}),
#"Replaced Value" = Table.ReplaceValue(#"Reordered Columns1",null,each_({"APS Source File Name - Copy.1",Replacer.ReplaceValue},{"Date"}))

in
    #"Replaced Value"

1 个答案:

答案 0 :(得分:1)

尝试#"Replaced Value" = Table.ReplaceValue(#"Reordered Columns1",null, each [#"APS Source File Name - Copy.1"],Replacer.ReplaceValue,{"Date"})