A record in Power Query is a single row of named fields wrapped in square brackets, like , and you use one whenever you need to hold several related values together as one object rather than as a table. You can create a record by typing it in the formula bar, by converting a table row into a record, by reading it from JSON or a nested column, or by letting the interface generate one for you. The rest of this guide walks through each route, then covers the traps that make records fail to expand or match.

What You'll Need

  • Power BI Desktop, Excel with Power Query (Data tab > Get Data), or the Power Query integration in Fabric or Analysis Services. Menu names shift slightly between versions and products, so treat the paths below as the common shape rather than exact wording.
  • A table, JSON file or nested column that contains data you want to fold into a record, or simply a blank query for hand-writing one.
  • Basic comfort with the formula bar and the Advanced Editor. Records are a formula-language concept first and a button concept second.

Step-by-Step

  1. Load or create a query with something to work from. On the Home tab choose New Source > Blank Query if you want to experiment. If you already have data, load it as usual and open the Power Query Editor. Everything below happens in the editor; the record only becomes visible in the output when you deliberately turn it into a table or column.
  2. Write a record by hand to see the syntax. In the formula bar type and press Enter. Power Query returns a single value of type Record, shown as a link you can click to see the fields. Quotes are optional around plain text field names but required where the name contains spaces, and each field name is followed by = and a value, separated by commas.
  3. Pull fields out with the field access operator. Once a record exists in a step, refer to one field with square brackets: . This is the everyday way records are used, because a record on its own is not a table and will not load to a worksheet or model as columns. A missing field name returns an error rather than a blank, which is useful for spotting typos.
  4. Convert a table row into a record. Select the query step that returns your table, then in the formula bar wrap the row you want. A common pattern is = Table.First(MyTable), which returns the whole first row as a record with one field per column. Other row functions such as Table.Last and Table.SelectRows wrapped in a single-row result behave the same way. Click the record link in the results pane to confirm the field names are what you expect.
  5. Turn a record back into a table. With a record value in a step, use Record.ToTable from the Add Column or Transform tab, or write = Record.ToTable(MyRecord). You get a two-column table of Name and Value, which you can then pivot, rename or merge. This is the standard bridge between the record world and the table world.
  6. Read records that arrive as text. If a column holds JSON-like text, use Transform > Parse > JSON (or Json.Document in a custom column). Each cell becomes a record, shown as a Record link. From there you can click the expand icon in the column header and pick the fields you want as new columns. Expanding is how nested records become ordinary flat data.
  7. Expand a nested record column properly. Click the double-arrow icon at the right of the column header. Choose Expand rather than Extract Values unless you actually want a list of the field values as text. Tick only the fields you need, and clear the box that prefixes the original column name if you want clean headers. Each ticked field becomes its own column with the parent column's name removed.
  8. Build a record from existing columns. To gather several columns back into one object, add a custom column with a record expression, for example [Street = [Address], Zip = [Postcode]]. The result is a column of records that you can later expand, send to a function, or restructure. Keep the field names short and consistent so expansion stays predictable.
  9. Use records to pass parameters. You can hold a set of settings in one record, such as a server and database name, and read them with field access inside a function or query. This keeps a single place to edit instead of scattering literals through many steps. If you later change the record, every downstream reference picks it up.
  10. Apply and close. When the query returns something loadable, choose Close & Load or Close & Load To. Remember that a bare record is not loadable as columns; convert it to a table with Record.ToTable, or extract fields into columns, before loading if you need it on a sheet or in a report.

Common Mistakes

The first trap is expecting a record to load directly. Power Query will not put a record into a worksheet grid or a model table as-is, because it has no rows or columns; you must convert or expand it first. The second is mismatched field names: field access is case sensitive in practice and a single typo produces an Expression.Error instead of a null, so copy names from the record view rather than retyping them. The third is expanding a column with identical field names in different nested records and forgetting that the expand step stacks them, which can silently hide duplicates if you tick the wrong boxes. The fourth is bracketing confusion: [] creates a record, [Field] reads one, and Table in brackets refers to the whole previous step, which is convenient but can also shadow a column of the same name. Finally, hand-written records that mix types, such as a number stored as text, cause later comparisons and joins to fail quietly.

Tips

Click a Record link in the results pane to inspect field names and types before writing access expressions; this avoids almost every name error. Use Record.FieldOrDefault when a field may legitimately be missing, so you get a fallback instead of an error. Keep related settings in one record per query and reference fields rather than duplicating literals. When working with JSON, expand one level at a time and check the column count after each step, because nested records can be several layers deep. If you need every field but only for a quick look, Record.ToTable plus a pivot gives you a readable summary without changing the source. Name your steps meaningfully as you go, since record-heavy queries become hard to read in the Advanced Editor otherwise.

Troubleshooting

If you see an Expression.Error mentioning that the field was not found, open the record, check the exact spelling and casing of the field name, and copy it. If a column shows Record instead of values, you have not expanded it yet; use the expand icon and pick fields. If expanding produces duplicate column names, rename one parent column before expanding or tick fewer fields, then add them in a second step. If JSON parsing returns errors, some rows likely contain malformed text; filter those out before parsing rather than after, and inspect a sample row. If a record will not load, convert it with Record.ToTable or extract the fields into columns. If the whole query breaks after an edit, delete the faulty step and rebuild it from the previous one rather than trying to repair complex code in place. As a first resort for anything odd, close the editor without saving, reopen the file, and confirm you are on a current version of the app, since the formula behaviour is stable but the interface around it changes.

Frequently Asked Questions

What is the difference between a record and a table in Power Query?

A table is a list of rows, each with the same columns. A record is a single set of named fields, effectively one row. Tables hold many records; records are the individual items inside them.

How do I turn a record back into columns?

Use the expand icon on the column that holds the records, or wrap the value in Record.ToTable if you want a Name and Value table you can pivot. Both are normal query steps.

Why does my query return Record instead of values?

Because a step is returning the record object itself, usually after a parse or a Table.First call. Add a field access like MyRecord[Field] or expand the column to surface the values.

Can I load a record directly to a worksheet or data model?

No. Convert it with Record.ToTable or extract its fields into columns first; only tables can be loaded.

Are field names case sensitive?

Treat them as case sensitive and copy the exact name from the record view. Spelling or casing mismatches are the most common cause of field-not-found errors.