Table.FromRecords
Converts a list of records into a table.
function (records
as list, optionalcolumns
as nullable any, optionalmissingField
as nullable any) as table
Converts
records
, a list of records, into a table.Table.Table construction
Create a table from records, using record field names as column names.
Table.FromRecords({[CustomerID = 1, Name = "Bob", Phone = "123-4567"], [CustomerID = 2, Name = "Jim", Phone = "987-6543"], [CustomerID = 3, Name = "Paul", Phone = "543-7890"]})
Table.FromRecords({ [CustomerID = 1, Name = "Bob", Phone = "123-4567"], [CustomerID = 2, Name = "Jim", Phone = "987-6543"], [CustomerID = 3, Name = "Paul", Phone = "543-7890"]})
Create a table from records with typed columns and select the number columns.
Table.ColumnsOfType(Table.FromRecords({[CustomerID=1, Name="Bob"]}, type table[CustomerID=Number.Type, Name=Text.Type]), {type number})
{"CustomerID"}
Last modified 4yr ago