|
源 = Excel.CurrentWorkbook(){[Name="表1"]}[Content],
更改的类型 = Table.TransformColumnTypes(源,{{"部门", type text}, {"发票号码", Int64.Type}}),
排序的行 = Table.Sort(更改的类型,{{"发票号码", Order.Ascending}}),
分组的行 = Table.Group(排序的行, {"部门"}, {{"计数", each if List.Count(_[发票号码])>=3 then Text.From(List.Min(_[发票号码]))&"-"&Text.From(List.Max(_[发票号码])) else if List.Count(_[发票号码])=2 then Text.From(List.Min(_[发票号码]))&"、"&Text.From(List.Max(_[发票号码])) else Text.From(_[发票号码]{0}) }},0),
分组的行1 = Table.Group(分组的行, {"部门"}, {{"发票号码", each Text.Combine([计数],"、")}})
|
评分
-
1
查看全部评分
-
|