Powerquery 中两个 table 的所有组合
All combinations of two table in Powerquery
这是一个关于 Power Query/M 的问题。
我有两个 table:一个有唯一对象,另一个 table 有两列(年份和欧元)。
我想将两个 table 合并为一个 table,其中包含所有对象和年份的行。
我该怎么做?
Picture about input and expected result
在Table2中添加列...自定义列...使用公式:
= Table1
使用新列顶部的箭头指向 [x] select 并展开
这将为您提供 Table1 和 Table2
的所有组合
let Source = Excel.CurrentWorkbook(){[Name="Table2"]}[Content],
#"Added Custom" = Table.AddColumn(Source, "Custom", each Table1),
#"Expanded Custom" = Table.ExpandTableColumn(#"Added Custom", "Custom", {"Column1"}, {"Column1.1"})
in #"Expanded Custom"
这是一个关于 Power Query/M 的问题。
我有两个 table:一个有唯一对象,另一个 table 有两列(年份和欧元)。 我想将两个 table 合并为一个 table,其中包含所有对象和年份的行。
我该怎么做?
Picture about input and expected result
在Table2中添加列...自定义列...使用公式:
= Table1
使用新列顶部的箭头指向 [x] select 并展开
这将为您提供 Table1 和 Table2
的所有组合let Source = Excel.CurrentWorkbook(){[Name="Table2"]}[Content],
#"Added Custom" = Table.AddColumn(Source, "Custom", each Table1),
#"Expanded Custom" = Table.ExpandTableColumn(#"Added Custom", "Custom", {"Column1"}, {"Column1.1"})
in #"Expanded Custom"