Power BI Table Union: How to Combine Tables Step by Step
In this article
A union in Power BI combines the rows of two or more tables that share the same column structure into a single table, stacking one set of rows on top of another. You do this most commonly in Power Query, which Power BI Desktop opens under Home > Transform data. The Append Queries command (Home > Append Queries > Append Queries as New) is the actual union operation, and it produces a new query that leaves the originals intact. The only prerequisites are matching or compatible columns and clean headers, because Power Query matches columns by name, not by position. Note that menu labels and icon placement can differ slightly between Power BI Desktop versions, so if you cannot find an item, look for the same name elsewhere on the Home tab or in the right-click menu of the query.
What You'll Need
- Power BI Desktop installed from Microsoft, with a dataset that has at least two tables (or two data sources) containing the same kind of records.
- Tables that represent the same grain of data, so every table has the same meaning for the same column.
- Consistent column headers, or a plan for renaming columns so they line up.
- A cleaned model: each source table loaded through Power Query rather than typed directly into the model, so the append step can be edited later.
- Backups or version control for your .pbix file, because appending rewrites the query structure and is easier to undo from a saved copy.
Step-by-Step
- Open your .pbix file, then click Home > Transform data. This launches the Power Query Editor, where all the combining happens.
- In the Queries pane on the left, review each table you want to union. Click a table, then check its column names and data types in the preview grid. Consistent names and types are what make a union reliable.
- Decide whether you want the union to replace one table or produce a new one. For a clean model, use Append Queries as New so the original queries stay available and you can rebuild the combined query without touching the source.
- Select the first table in the Queries pane. Then go to Home > Append Queries > Append Queries as New. If you only see Append Queries, right-click the table in the Queries pane and look for Append Queries as New there.
- In the Append dialog, choose Two tables if you are combining exactly two, or Three or more tables if you have more. With the two-table option, pick the primary table and the table to append to it. With three or more, move the tables you want into the right-hand list and order them with the arrows if you care about row order.
- Click OK. Power Query creates a new query, usually named something like Append1. It appears at the bottom of the Queries pane.
- Click the new query and inspect the preview. Scroll down to confirm all rows from both tables are present, then check that each column holds the expected values. Columns that exist in only one source will show null for rows from the other source.
- Because Power Query matches columns by header name, columns with different names will not merge. Rename them before appending. Right-click a column header and choose Rename so that corresponding columns use identical names in every table.
- Check the data types. Click the icon at the left of each column header and confirm it is set to the correct type. A column typed as text in one table and whole number in another can produce type errors or unexpected nulls after the append.
- Rename the combined query to something meaningful by right-clicking it in the Queries pane and choosing Rename. Then click Home > Close & Apply to load it into the model.
- In the report view, use the combined table in your visuals. If any old relationship pointed at the original table, check whether it needs to point at the new one instead, because relationships are defined per table in the model.
Common Mistakes
- Appending instead of merging. Append stacks rows and is a union. Merge joins columns on a key and is a join. Choosing Merge when you want more rows produces a wide table rather than a longer one.
- Mismatched headers. The single biggest cause of missing data after an append is a differently spelled or differently cased header, such as “CustomerID” in one table and “Customer ID” in another. These become two separate columns, each half filled with nulls.
- Appending inside the report view by hand. Manually copying data into a table in Power BI does not create a refreshable query and breaks as soon as the sources change.
- Assuming column order matters. It does not. Power Query aligns by name, so a table with the same columns in a different order still appends correctly, while the same order with different names does not.
- Forgetting schema drift. When a source file later gains or loses a column, the append may keep the old column set. Use the append step to review which columns the combined query exposes.
- Editing the output query instead of the source. If you clean rows in the appended query, you are cleaning the combined result. It is usually better to clean each source table first and append afterwards.
- Appending tables of different grains. Stacking a monthly summary table onto a daily transaction table gives misleading totals. Union tables only when each row means the same thing.
Tips
- Build a reusable folder query when you have many files with the same layout. Combine files in a folder uses the same append logic but scales to any number of files, and new files are picked up on refresh.
- Append a small helper column to each source table before combining, such as a SourceName text column, so you can filter or summarize by origin after the union.
- Keep original tables in the model, marked as hidden or not loaded, if you need to trace which rows came from which source. Hiding a table does not delete it.
- Prefer one append step over many chained ones. Appending three or more tables in a single dialog is easier to audit and faster to refresh than stacking appends on top of appends.
- Comment or rename each step in the Applied Steps pane so a colleague can tell why a column was renamed or a type changed.
- Test the query with a small sample before closing and applying, and check the row count so you know the union returned the sum you expect, not a subset.
Troubleshooting
If rows seem to be missing after the append, first compare column headers across the source tables. Rename them to match and repeat the append. If you see columns full of nulls, that is the same symptom: each source only fills its own version of that column.
If the Append Queries option is greyed out, make sure a table query is selected in the Queries pane, not a folder, function, or parameter. If you see an error about incompatible types, set column types explicitly in each source table before appending, then refresh the append step.
If the combined row count is higher than expected, check whether the append includes a table twice, or whether one source query already includes data that duplicates another. Remove duplicates on the key columns of each source first, or filter the sources, then append again.
If the appended query fails to refresh after the source changes, open the editor and inspect the Applied Steps for the failing step. Often a renamed column in the source breaks the append; update the source query to restore the original name or adjust the step. If the whole model slows down, review whether the union is loading more rows than the report needs and filter at the source.
If nothing else works, duplicate the combined query as a backup, then rebuild the append from the source tables. Because the append is a stored query step, rebuilding it is a matter of a few clicks rather than redoing any manual work.
Frequently Asked Questions
What is the difference between Union and Append in Power BI?
They do the same thing: stack rows from tables with the same columns. Power Query calls the operation Append Queries. There is no separate Union button, and the union of tables is performed by appending them.
Can I union tables in the DAX model instead of Power Query?
DAX has no built-in row-union function that creates a physical table. Use Power Query for a refreshable union. Use DAX only for measures that add results together across tables.
Do columns have to be in the same order to append tables?
No. Columns are matched by name, so order does not matter. Names must match, and missing columns in one table become null for that table's rows.
Can I union three or more tables at once?
Yes. Choose Three or more tables in the Append dialog and add every table you want to combine. A single append step is easier to maintain than several chained appends.
Does appending change my original tables?
Appending as New leaves the original queries untouched and creates a separate combined query. Appending to an existing query instead rewrites that query's steps, so use the New option first if you want a safety net.
Why does the combined table show nulls for some rows?
The column exists in one source table but not the other, or the header names differ. Rename the columns so they match, refresh, and the values from both tables will align in one column.