代码之家  ›  专栏  ›  技术社区  ›  Navin

对功率查询中的列进行分组和连接

  •  1
  • Navin  · 技术社区  · 2 年前

    我想在从第一个到第二个的幂查询中得到这个结果,它同时连接和分组列。

    谢谢你的帮助。

    enter image description here

    1 回复  |  直到 2 年前
        1
  •  0
  •   horseyride    2 年前

    尝试

    let  Source = Excel.CurrentWorkbook(){[Name="Table1"]}[Content],
    #"Grouped Rows" = Table.Group(Source, {"Item", "Description"}, {
        {"Qty", each List.Sum([Qty]), type number},
        {"lots", each Text.Combine(Table.AddColumn(_, "Custom", each Text.From([Lot])&"("&Text.From([Qty])&")")[Custom],","), type text}
    })
    in  #"Grouped Rows"
    

    enter image description here