Table.CombineColumns
语法
Table.CombineColumns(table as table, sourceColumns as list, combiner as function, column as text) as table
关于
使用指定的组合程序函数将指定的列组合为一个新列。
示例 1
将姓氏和名字合并到一个新列中,用逗号分隔。
使用情况
Table.CombineColumns(
Table.FromRecords({[FirstName = "Bob", LastName = "Smith"]}),
{"LastName", "FirstName"},
Combiner.CombineTextByDelimiter(",", QuoteStyle.None),
"FullName"
)
输出
Table.FromRecords({[FullName = "Smith,Bob"]})