假设我们有专栏
Content
里面有桌子。我想转换该列的每个表,使所有表都从第一行获取标题。
let
Source = Table.FromRows(Json.Document(Binary.Decompress(Binary.FromText("i45WKsovVzBU0lFyVIrVgfCMUHjGKDwTFJ4pCs8MwosFAA==", BinaryEncoding.Base64), Compression.Deflate)), let _t = ((type text) meta [Serialized.Text = true]) in type table [Column1 = _t, Column2 = _t]),
#"Grouped Rows" = Table.Group(Source, {"Column2"}, {{"Content", each _, type table}}),
#"Previous Step" = Table.SelectColumns(#"Grouped Rows",{"Content"}),
#"Added Custom" = Table.AddColumn(#"Previous Step", "New Content", each Table.PromoteHeaders([Content], [PromoteAllScalars=true]))
in
#"Added Custom"
如果你选择
Previous Step
Table
写,而不是写在上面),你可以从里面看到:
但我想得到我想要的
不添加新列
转变
内容
注意,我不想扩展表。