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"]})