[英]Expand and combine power query
从第 20 行开始,您可以根据您的场景调整以下内容
let
Source = Table.FromRows(
Json.Document(
Binary.Decompress(
Binary.FromText("i45WclSK1YlWclKKjQUA", BinaryEncoding.Base64),
Compression.Deflate
)
),
let
_t = ((type nullable text) meta [Serialized.Text = true])
in
type table [Column1 = _t]
),
#"Changed Type" = Table.TransformColumnTypes(Source, {{"Column1", type text}}),
#"Added Custom" = Table.AddColumn(
#"Changed Type",
"Custom",
each [First = "First", Second = "Second"]
),
#"Added Custom1" = Table.AddColumn(
#"Added Custom",
"Custom.1",
each
let
x = [Custom],
L = Record.ToList(x),
Loop = List.Generate(
() => [i = 0, j = 0, k = {L{0}}, comb = "0"],
each [i] < List.Count(L),
each [i = [i] + 1, j = i, k = {L{j}}, comb = Text.Combine(List.Combine({[k], k}), ",")],
each [comb]
),
c = Loop{List.Count(Loop) - 1}
in
c
),
#"Removed Columns" = Table.RemoveColumns(#"Added Custom1", {"Custom"})
in
#"Removed Columns"
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.