Table.DuplicateColumn

Syntax

Table.DuplicateColumn(table as table, columnName as text, newColumnName as text, optional columnType as nullable type) as table

Description

Duplicate the column named columnName to the table table. The values and type for the column newColumnName are copied from column columnName.

Reference Data

https://docs.microsoft.com/en-us/powerquery-m/power-query-m-function-reference

Power Query M Functions / Table Functions / Table.DuplicateColumn