Table.CombineColumns
Combines the specified columns into a new column using the specified combiner function.
Syntax
Table.CombineColumns(
table as table,
sourceColumns as list,
combiner as function,
column as text
) as table
Remarks
Combines the specified columns into a new column using the specified combiner function.
Examples
Example #1
Combine the last and first names into a new column, separated by a comma.
Table.CombineColumns(
Table.FromRecords({[FirstName = "Bob", LastName = "Smith"]}),
{"LastName", "FirstName"},
Combiner.CombineTextByDelimiter(",", QuoteStyle.None),
"FullName"
)
Result:
Table.FromRecords({[FullName = "Smith,Bob"]})
Category
Table.Transformation