根据你的图一建了查询,然后添加新列,输入 {1..[数量]},展开list,完成。完整的代码是
let
源 = Table.FromRows(Json.Document(Binary.Decompress(Binary.FromText("i45WMlTSUXo+ZROQNFSK1YlWMgKynuycCSSNwXxjEH8HiG8C5puA+Y1w9aZA1rOOLrh6MyDr6faNcHlzEH/XLLi8BZD1Yt9sIGkK5luC5BevgZtvaABy0MwdCAF0FxoinAhUEQsA", BinaryEncoding.Base64), Compression.Deflate)), let _t = ((type text) meta [Serialized.Text = true]) in type table [序号 = _t, 人姓名 = _t, 数量 = _t]),
更改的类型 = Table.TransformColumnTypes(源,{{"序号", Int64.Type}, {"人姓名", type text}, {"数量", Int64.Type}}),
已添加自定义 = Table.AddColumn(更改的类型, "自定义", each {1..[数量]}),
"展开的“自定义”" = Table.ExpandListColumn(已添加自定义, "自定义")
in
"展开的“自定义”"