What Do You Use to Combine Queries in Power BI?
When you need to bring data from multiple tables together in Power BI, the tool you'll use is the Power Query Editor. This article will show you how to use its two primary features for combining data - Append and Merge - and explain exactly when to use each one.
The Heart of Data Combination: Power Query Editor
Before jumping into the specifics, it's important to know where this all happens. All data combining in Power BI is done within the Power Query Editor. You can get there from the main Power BI Desktop screen by clicking the "Transform data" button on the Home ribbon.
Inside Power Query, your data sets are called "queries." A query is just a set of instructions for connecting to a data source (like an Excel file or a database) and shaping it. Combining queries means you're creating a new set of instructions to bring different datasets together into a single, unified view.
Free PDF · the crash course
AI Agents for Marketing Crash Course
Learn how to deploy AI marketing agents across your go-to-market — the best tools, prompts, and workflows to turn your data into autonomous execution without writing code.
Append vs. Merge: What’s the Difference?
Power Query gives you two main options for combining queries: Append and Merge. Understanding the difference is crucial because they solve very different problems.
- Append Queries: Think of this as stacking tables on top of each other. If you have data split into multiple tables with the exact same columns (like monthly sales reports), you append them to create one master table. The number of rows increases, but the number of columns stays the same.
- Merge Queries: Think of this as joining tables side-by-side. If you have two tables that share a common column (like a
Salestable with aProductIDand aProductstable withProductIDandProductName), you merge them to enrich your data. The number of columns increases, while the number of rows typically stays the same.
Here’s a simple analogy:
- If you're stacking boxes of the same size, you're appending.
- If you're looking up a customer's address from one list and adding it to their order in another list, you're merging.
How to Append Queries: Stacking Data for a Full View
Use Append when your data is structured identically but spread across multiple tables or files. A classic example is having sales data for each month in a separate spreadsheet tab (e.g., "January_Sales", "February_Sales", "March_Sales"). To analyze the first quarter, you need to combine them into one table.
Step-by-Step Guide to Appending Queries
Let's assume you have tables for Q1, Q2, Q3, and Q4 sales results and you want to create a single table for the full year.
- Open Power Query Editor: In Power BI Desktop, navigate to the Home ribbon and click "Transform data."
- Locate Append Queries: In the Power Query Editor, stay on the Home ribbon. In the "Combine" group, you'll see the "Append Queries" button.
- Choose "Append Queries as New": You have two choices:
- Select Your Tables: An "Append" dialog box will appear.
- Confirm and Review: Click "OK." Power Query will generate a new query, likely named "Append1." You'll see that it contains all the rows from your four quarterly tables, stacked vertically. You should rename this new query to something meaningful, like "Total_Annual_Sales."
Heads Up! For a clean append, your column headers must match perfectly across all tables. "Product ID" in one table and "ProductID" in another will result in two separate columns in your final table. Make sure the names and data types are consistent before you append.
How to Merge Queries: Enriching Your Data With More Columns
Use Merge when you need to add details to one table from another. Imagine you have a table of Sales transactions that includes ProductID but not the product's name or category. A separate Products lookup table contains the ProductID along with the ProductName and Category. Merging lets you add the product name and category to your sales data.
Step-by-Step Guide to Merging Queries
Following our example, let's merge our Sales table with our Products table.
- Get to Merge Queries: In the Power Query Editor, go to the Home ribbon and find "Merge Queries" in the "Combine" group. Just like Append, select "Merge Queries as New" to create a separate, combined table.
- Configure the Merge Operation: The "Merge" dialog box is where you define the join.
- Choose the "Join Kind": This tells Power Query exactly how to handle matching and non-matching rows.
For our scenario, "Left Outer" is perfect. We want to keep all our sales records and just attach product info. Click "OK."
- Expand the New Column: A new query is created, but it looks a bit strange. It has all the columns from your
Salestable plus a new column namedProductsthat contains the word "Table" in every cell. This is correct! You need to expand this column to reveal the data. Click the two-arrow expand icon in the column header. - Select Columns to Add: A drop-down menu appears, listing all the columns from your
Productstable. Uncheck any you don't need (likeProductID, since you already have it). SelectProductNameandCategory. It's also good practice to uncheck "Use original column name as prefix" to avoid clunky column names likeProducts.ProductName. - Finish and Check: Click "OK." Your
Salestable is now enriched with the product name and category, ready for deeper analysis in your Power BI reports.
Quick Tips for Combining Queries Painlessly
Keep these best practices in mind to avoid common frustrations:
- Check Data Types: Merging '123' (formatted as Text) with 123 (formatted as a Number) will not work. A quick check of data types on your key columns can save a lot of headaches.
- Keep Your Originals Clean: Always use "Append Queries as New" and "Merge Queries as New." This non-destructive approach preserves your original data transformations, making your process easier to debug and understand later.
- Mind the Cardinality: Mismatched or duplicated keys can cause unexpected results. If your lookup table has duplicate
ProductIDs, a merge could create more rows than you started with. - Watch for Mismatched Column Names: When appending, inconsistent column naming is the number one cause of errors. "Date" vs. "Sale_Date" will create two columns when you only wanted one.
Free PDF · the crash course
AI Agents for Marketing Crash Course
Learn how to deploy AI marketing agents across your go-to-market — the best tools, prompts, and workflows to turn your data into autonomous execution without writing code.
Final Thoughts
Combining data is a foundational skill in Power BI, and mastering the difference between Append and Merge is essential. An easy way to remember is: append adds rows for "more of the same," while merge adds columns for "more information about what you have." Using the Power Query Editor, you can transform scattered data into a clean, unified model ready for visualization.
While Power BI is a great tool, all this data wrangling can still be time-consuming, especially when joining data from multiple marketing or sales platforms. We created Graphed to remove this friction entirely. Instead of manually setting up Appends and Merges in Power Query, you can connect platforms like Google Analytics, Shopify, and Salesforce in seconds. Just ask a question in plain English like, "show me Shopify revenue by Google Ads campaign," and Graphed instantly handles the data blending and builds a live dashboard for you.
Related Articles
Facebook Ads for Lawyers: The Complete 2026 Strategy Guide
Master Facebook ads for lawyers with this comprehensive 2026 strategy guide. Learn proven targeting, budgeting, and conversion tactics that deliver 200-500% ROI.
Facebook Ads for Moving Companies: The Complete 2026 Strategy Guide
Learn how to run Facebook ads for moving companies in 2026. This comprehensive guide covers budget allocation, creative strategies, targeting, and optimization to generate more moving leads.
Facebook Ads for Auto Repair Shops: The Complete 2026 Strategy Guide
Learn how to run Facebook ads for auto repair shops in 2026. Discover targeting strategies, budget recommendations, ad creative tips, and proven tactics to fill your appointment book consistently.