Table.SingleRow
This topic applies to the Power Query Formula Language which can be used with Power Query and Power BI Desktop to build queries that mashup data. See the list of function categories.
Returns a single row from a table.
Table.SingleRow(table as table) as record
| Argument | Description |
|---|---|
| table | The Table to check. |
- Table.SingleRow is similar to List.Single but requires a table as input.
Table.SingleRow(Table.FromRecords(
{
[CustomerID = 1, Name = "Bob", Phone = "123-4567"]
}
))
equals [CustomerID = 1, Name = "Bob", Phone = "123-4567"]
| CustomerID | 1 |
| Name | Bob |
| Phone | 123-4567 |
Show: