Power Query M code
let
Source = YourTable,
ExpandedRecord = Table.ExpandRecordColumn(Source, "NestedRecordColumn", {"Field1", "Field2"}, {"Field1", "Field2"})
in
ExpandedRecord
Expands a column of nested record values, common after parsing JSON from an API, into individual columns.
let
Source = YourTable,
ExpandedRecord = Table.ExpandRecordColumn(Source, "NestedRecordColumn", {"Field1", "Field2"}, {"Field1", "Field2"})
in
ExpandedRecord
Tidy JSON with the JSON Formatter
Use Table.ExpandRecordColumn for record-type columns (typical of parsed JSON objects); use Table.ExpandTableColumn instead for columns that hold nested tables.
Browse all 145 snippets in the Power Query M Code Snippets, or search the library for something similar to Expand Nested JSON Records.