Record.FieldValues

Record

Returns a list of field values from a record.

Examples on this page use shared sample tables. View them to understand the input data before reading the examples below.

Syntax

Record.FieldValues(record as record) as list

Parameters

NameTypeRequiredDescription
recordrecordYesThe record whose field values to return.

Return Value

listA list of values from the record, in field order.

Remarks

Record.FieldValues returns all values from a record as a list, preserving the order in which the fields appear. This is the value counterpart to Record.FieldNames. Together, these two functions let you decompose a record into parallel lists of names and values for dynamic processing or serialization.

Examples

Example 1: Get field values from the first Sales row

let
    FirstRow = Sales{0},
    Values = Record.FieldValues(FirstRow)
in
    #table({"Value"}, List.Transform(Values, each {_}))
Result
Value
11
2Alice
3Widget A
4Widgets
525
64
72024-01-15
8East

Compatibility

Power BI Desktop Power BI Service Excel Desktop Excel Online Dataflows Fabric Notebooks