OpenBI Docs Buy

Table.ToRows

A table's rows as a list of lists, each row's values in column order.

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

Syntax

Table.ToRows(table as table) as list
ParameterTypeDescription
tabletableThe table to take apart.

Returns

list. A list per row, in the table's order.

Remarks

  • The column names are not part of it; Table.FromRows builds a table from such a list and the names.

Examples

Two rows

Table.ToRows(#table({"Product", "Price"}, {{"Chair", 50}, {"Desk", 120}}))
{{"Chair", 50}, {"Desk", 120}}

Table.FromRows, Table.ToRecords, Table.ToColumns.

Last updated · OpenBI Studio 0.3.79