OpenBI Docs Buy

Table.DemoteHeaders

Moves the column names down into a first row and names the columns Column1, Column2 and so on.

Group: Table. Power Query M has it too: a query that uses it is written as in Power BI.

Syntax

Table.DemoteHeaders(table as table) as table
ParameterTypeDescription
tabletableThe table whose names go into the rows.

Returns

table. One more row than before, with the old names as its texts.

Remarks

Examples

Names into the first row

Table.DemoteHeaders(#table({"Product", "Price"}, {{"Chair", 50}, {"Desk", 120}}))
Column1Column2
ProductPrice
Chair50
Desk120

Table.PromoteHeaders, Table.Transpose, Table.ColumnNames.

Last updated · OpenBI Studio 0.3.79