|
[广告] Excel易用宝 - 提升Excel的操作效率 · Excel / WPS表格插件 ★ 免费下载 ★ ★ 使用帮助★
没专门下附件,但情况就是这么个情况了
- let
- Source = Table.FromRows(Json.Document(Binary.Decompress(Binary.FromText("i45WclTSUTJUitWJVgIyjGCMkPySxBwYByLthCxvjEehMxaDYgE=", BinaryEncoding.Base64), Compression.Deflate)), let _t = ((type nullable text) meta [Serialized.Text = true]) in type table [Supplier = _t, SN = _t]),
- #"Changed Type" = Table.ReplaceValue(Source, "", null, Replacer.ReplaceValue, {"Supplier"}),
- #"Added Index" = Table.AddIndexColumn(#"Changed Type", "Index", 0, 1),
- Grouped = let pos = List.PositionOf(#"Added Index"[SN], "Total", 2) in Table.Group(#"Added Index", "Index", {"Grp", each Table.FillUp(Table.FillDown(_, {"Supplier"}),{"Supplier"})}, 1, (x,y) => Byte.From(List.Contains(pos, y-1))),
- #"Expanded Grp" = Table.RemoveColumns(Table.ExpandTableColumn(Grouped, "Grp", {"Supplier", "SN"}, {"Supplier", "SN"}), "Index")
- in
- #"Expanded Grp"
复制代码
|
|