Table.FromRecords Function in Power Query
The Table.FromRecords function returns a table from a list of records.
Syntax
Table.FromRecords(records as list, optional columns as any, optional missingField as nullable number) as table
Example: Create a table from records, using record field names as column names.
Power Query M
let
MyTable = Table.FromRecords({
[CustomerID = 1, Name = "Ashish", Phone = "123-4567"],
[CustomerID = 2, Name = "Katrina", Phone = "987-6543"],
[CustomerID = 3, Name = "Alia", Phone = "543-7890"]
})
in
MyTable The above formula is written it in the advance editor, as shown in the following image:

The output the function can be seen in the following image:
