Table.ExpandTableColumn
Syntax
Table.ExpandTableColumn(table as table, column as text, columnNames as list, optional newColumnNames as nullable list) as table
About
Expands tables in table
[column
] into multiple rows and columns. columnNames
is used to select the columns to expand from the inner table. Specify newColumnNames
to avoid conflicts between existing columns and new columns.
Example 1
Expand table columns in [a]
in the table ({[t = {[a=1, b=2, c=3], [a=2,b=4,c=6]}, b = 2]})
into 3 columns [t.a]
, [t.b]
and [t.c]
.
Usage
Table.ExpandTableColumn(
Table.FromRecords({
[
t = Table.FromRecords({
[a = 1, b = 2, c = 3],
[a = 2, b = 4, c = 6]
}),
b = 2
]
}),
"t",
{"a", "b", "c"},
{"t.a", "t.b", "t.c"}
)
Output
Table.FromRecords({
[t.a = 1, t.b = 2, t.c = 3, b = 2],
[t.a = 2, t.b = 4, t.c = 6, b = 2]
})
Phản hồi
https://aka.ms/ContentUserFeedback.
Sắp ra mắt: Trong năm 2024, chúng tôi sẽ dần gỡ bỏ Sự cố với GitHub dưới dạng cơ chế phản hồi cho nội dung và thay thế bằng hệ thống phản hồi mới. Để biết thêm thông tin, hãy xem:Gửi và xem ý kiến phản hồi dành cho