OpenBI Docs Buy

Record.ToTable

A record turned into a table of two columns, Name and Value, a row per field.

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

Syntax

Record.ToTable(record as record) as table
ParameterTypeDescription
recordrecordThe record to turn into rows.

Returns

table. Two columns, Name and Value: a row for each field.

Examples

One row per field

Record.ToTable([Name = "Ann", City = "Oslo", Since = #date(2021, 3, 1)])
NameValue
NameAnn
CityOslo
Since2021-03-01

Record.FromTable, Record.FieldNames, Table.FromRecords.

Last updated · OpenBI Studio 0.3.79