问题:在新的一列里显示某列根据指定条件的分类计数/求和……
let
源 = Excel.CurrentWorkbook(){[Name="表1"]}[Content],
分组的行 = Table.Group(源, {"类别"}, {{"计数", each Table.RowCount(_)}, {"求和", each List.Sum([数量])}, {"内容", each _}}),
展开 = Table.ExpandTableColumn(分组的行, "内容", {"品名", "数量"}),
重排序的列 = Table.ReorderColumns(展开,{"类别", "品名", "数量", "计数", "求和"}),
更改的类型 = Table.TransformColumnTypes(重排序的列,{{"类别", type text}, {"品名", type text}, {"数量", Int64.Type}, {"计数", Int64.Type}, {"求和", Int64.Type}})
in
更改的类型
标签:求和,计数,添加,Int64,each,Table,Type From: https://www.cnblogs.com/officeplayer/p/16726354.html