// 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},
他重命名了列,删除了源表,重新安装,更新了它。他又重新命名了它。检查连接一切正常。
这就是你想要做的吗?
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)”],这是一种糟糕的方法