Power Query Add Row: Step-by-Step Guide
In this article
To add a row in Power Query, use the Enter Data feature to create a small table with your new row, then Append it to your existing query. Power Query has no direct "insert row" button because it is designed to transform tables, not edit them cell by cell. The Enter Data plus Append method is the standard, reliable workaround and works in both Excel and Power BI Desktop. You will need the Power Query Editor open and your source table loaded as a query.
What You'll Need
- A table or data source already loaded into Power Query (via Data > From Table/Range in Excel, or Get Data in Power BI).
- The Power Query Editor window open (double-click the query in the Queries pane).
- Your source table must have consistent column headers, because Append matches columns by name, not position.
Step-by-Step
- Open the Power Query Editor. In Excel, select your table and go to Data > From Table/Range. In Power BI Desktop, use Home > Transform Data to open the editor. Menu labels can differ slightly by version and platform; the core commands are the same.
- Check your column headers. Make sure the first row of your query is promoted as headers (Home > Use First Row as Headers if needed). Append matches columns by name, so headers must match exactly between the main query and the row you are adding.
- Create a new blank query for the row. Go to Home > New Source > Blank Query. This gives you a clean query to hold the single row.
- Use Enter Data to build the row. With the blank query selected, go to Home > Enter Data. A dialog opens with a small editable grid. Type your column headers exactly as they appear in the main query, then type the values for your new row underneath. Click OK.
- Verify the new query. The Enter Data step creates a query (often named Table1 or similar). Rename it in the Queries pane to something clear, like "NewRow", by right-clicking and choosing Rename.
- Append the new row to your main query. Select your main query in the Queries pane. Go to Home > Append Queries > Append Queries as New (or Append Queries to modify in place). Choose your main query as the first table and "NewRow" as the second table. Click OK.
- Check the result. The appended query now shows all original rows plus the new row at the bottom. Scroll to confirm the values landed in the correct columns.
- Load the result. Go to Home > Close & Load > Close & Load To and choose where to place the table (a worksheet in Excel, or a table in the Power BI model).
Common Mistakes
- Mismatched column names. Append matches by header name. If the new row uses "Customer" and the main query uses "Customer Name", the values will not line up and you will get nulls.
- Wrong data types. If the main query's Amount column is Whole Number and you type text in the new row, the append can fail or convert values unexpectedly. Set data types consistently on both queries before appending.
- Appending the wrong direction. Appending NewRow to the main query is correct; appending the main query to NewRow also works but changes which query is the base. Be deliberate about which query you select first.
- Forgetting to refresh. After loading, the appended row appears only after the query refreshes. Use Data > Refresh All in Excel or Refresh in Power BI.
- Editing the loaded table directly. Typing a row into the loaded worksheet table does not update the query; the next refresh overwrites it. Always add rows through the query.
Tips
- For a single row, Enter Data is the fastest route. For many rows, paste them into a worksheet table and append that table instead.
- Keep the NewRow query as a separate query so you can edit the row later without touching the main query.
- If you need the row in a specific position, add an index column (Add Column > Index Column) and sort after appending.
- Use Append Queries as New when you want to keep the original query intact and create a separate combined query.
- Name your queries clearly; "NewRow" and "MainData" are easier to work with than "Table1" and "Table2".
Troubleshooting
The new row shows nulls in some columns. This almost always means header names do not match exactly. Compare the headers character by character, including spaces and capitalization, and correct the Enter Data table.
Append Queries is greyed out. Make sure you have a query selected in the Queries pane and that at least two queries exist. If you are in the wrong context (for example, inside a function), return to the main query view.
The row disappears after refresh. You likely edited the loaded table directly instead of the query. Re-add the row through Enter Data and Append, then refresh.
Data type errors after appending. Set the data type on the NewRow query to match the main query before appending. Use Transform > Data Type on each column.
If that did not work, delete the appended step (click the X next to the step in Applied Steps), recreate the NewRow query, and append again. If problems persist, close and reopen the Power Query Editor, or restart Excel or Power BI Desktop.
Frequently Asked Questions
Can I insert a row in the middle of a table in Power Query?
Not directly. Power Query appends rows at the end. To control position, add an Index column, append the row, then sort by the index or another column.
Does adding a row in Power Query change my original source data?
No. Power Query transformations are applied to a copy of the data. Your source table remains unchanged unless you load the result back over it.
Why does Append Queries ask me to choose two tables?
Append combines rows from two tables with matching columns. You select the primary table and the table containing the new row.
Can I add multiple rows at once?
Yes. In the Enter Data dialog, add as many rows as you need before clicking OK, then append the whole table.
Does this work the same in Excel and Power BI?
The core steps are the same. Menu locations and wording can differ slightly between versions and platforms.