为什么标识符无效?该列位于 corr 语法中。使用 corr nam、Power Query 编辑器工具、扩展编辑器工具在酸数据上

问题描述 投票:0回答:1
// Join data and fill in the monthly columns
    JoinedTable = Table.Join(ChangedTypes, {"CustomerNo"}, FilteredRows, {"Customer No_"}),
    FilledColumns = Table.TransformColumns(JoinedTable, {
        {"January", each if [Month] = 1 then [ImportedSales(LCY)] else null, type number},
        {"February", each if [Month] = 2 then [ImportedSales(LCY)] else null, type number},
        {"March", each if [Month] = 3 then [ImportedSales(LCY)] else null, type number},

他重命名了列,删除了源表,重新安装,更新了它。他又重新命名了它。检查连接一切正常。

powerbi editor powerquery odb
1个回答
0
投票

这就是你想要做的吗?

let JoinedTable = Excel.CurrentWorkbook(){[Name="Table1"]}[Content],
#"Added Custom" = Table.AddColumn(JoinedTable, "Custom", each Date.MonthName(#date(2000,[Month],1))),
#"Duplicated Column" = Table.DuplicateColumn(#"Added Custom", "ImportedSales(LCY)", "copy"),
#"Pivoted Column" = Table.Pivot(#"Duplicated Column", List.Distinct(#"Duplicated Column"[Custom]), "Custom", "copy")
in  #"Pivoted Column"

您的原始问题之一是您需要将您的专栏引用为[#“ImportedSales(LCY)”],这是一种糟糕的方法

© www.soinside.com 2019 - 2024. All rights reserved.