To join tables in Power BI, you create a relationship between them in the Model view, or merge them in Power Query before loading. The relationship approach is the standard method for star schemas: you drag one key field onto the matching key field, set the cardinality and cross-filter direction, and then use fields from both tables in visuals. For flat-table reporting or when you need to combine columns physically, use Power Query's Merge Queries instead. This guide covers both, plus the mistakes that cause blank visuals and wrong totals.

What You'll Need

  • Power BI Desktop installed (the steps below use the current desktop version; menu labels can differ slightly by version and region).
  • At least two tables loaded into your model, each with a column that identifies the same entity (for example, CustomerID in both a Sales table and a Customers table).
  • Basic understanding of your data: which table is the fact (transactions, events) and which are dimensions (customers, products, dates).

Step-by-Step

Method 1: Create a relationship in Model view (recommended)

  1. Open your report in Power BI Desktop and click the Model view icon on the left sidebar (the icon showing connected boxes).
  2. Check that both tables appear as boxes. If a table is missing, go to Home > Transform data to open Power Query and confirm it is loaded, not just connected.
  3. Identify the key columns. In a well-structured model, the dimension table (Customers) has one row per customer, and the fact table (Sales) has many rows per customer. The shared column is usually named the same in both, such as CustomerID.
  4. Drag the key column from the dimension table onto the matching column in the fact table. A line appears between the boxes.
  5. Double-click the line (or right-click and choose Properties) to open the relationship editor. Confirm the Cardinality is One to many with the dimension on the "one" side. Power BI usually detects this automatically.
  6. Set Cross filter direction to Single unless you have a specific reason to filter both ways. Single direction keeps filter performance predictable and avoids ambiguous filter paths.
  7. Check the Active status. If you see a dashed line, the relationship is inactive; right-click it and choose Set as active if it should be the default join.
  8. Switch to Report view, add a visual such as a table or matrix, and place a field from each table into it. If values appear together correctly, the relationship works.

Method 2: Merge queries in Power Query (when you need one flat table)

  1. Go to Home > Transform data to open the Power Query Editor.
  2. Select the first query (for example, Sales) in the Queries pane.
  3. On the Home tab, click Merge Queries (or Merge Queries as New if you want to keep the originals separate).
  4. In the merge dialog, select the second table from the dropdown. Click the key column in each table so both are highlighted.
  5. Choose the Join Kind. Left Outer keeps all rows from the first table and adds matches from the second; Inner keeps only matching rows. The dialog shows a small diagram of each join type.
  6. Click OK. A new column appears containing a table value in each row.
  7. Click the expand icon (two arrows) in the new column header and select the columns you want to bring in. Clear the Use original column name as prefix checkbox if you want clean names.
  8. Click Close & Apply to load the merged result into the model.

Common Mistakes

  • Joining on columns with different data types. If CustomerID is text in one table and a whole number in the other, the relationship will not work or will silently fail to match. Fix the type in Power Query first.
  • Duplicate keys in the "one" side. A dimension table with repeated customer IDs creates a many-to-many relationship and inflated totals. Remove duplicates in Power Query.
  • Trailing spaces or inconsistent casing. "C001" and "C001 " are different values. Trim and standardize keys before joining.
  • Using Merge when a relationship would do. Merging flattens data and duplicates dimension columns across every fact row, which bloats the model and makes filtering less flexible.
  • Bidirectional cross-filtering everywhere. It can create ambiguous paths and slow reports. Use it only where the model genuinely requires it.

Tips

  • Name your key columns consistently across tables before you start. It makes automatic relationship detection reliable.
  • Hide key columns from report view after joining so report authors pick descriptive fields instead of IDs.
  • Use a dedicated Date table marked as a date table, and relate it to every fact table's date column. This makes time intelligence functions work correctly.
  • When you need more than one relationship between the same two tables (for example, order date and ship date), keep one active and use USERELATIONSHIP in DAX measures for the inactive one.
  • Check the relationship line after every data refresh. Renamed or removed columns in the source can break it.

Troubleshooting

  • Visuals show blanks or totals do not add up. Open Model view and inspect the relationship line. A missing line, an inactive (dashed) line, or mismatched data types are the usual causes.
  • Power BI will not let you create the relationship. It usually reports that one side must have unique values. Remove duplicates from the dimension key or change the cardinality setting if many-to-many is genuinely correct.
  • The merge returns far more rows than expected. The second table has duplicate keys. Deduplicate it in Power Query before merging, or you will multiply your fact rows.
  • Columns you expanded disappeared after refresh. The source column was renamed or removed. Reopen Power Query, redo the merge step, and re-expand.
  • Filters do not flow from one table to another. Check cross-filter direction. With Single direction, filters flow from the "one" side to the "many" side only.

Frequently Asked Questions

Should I use relationships or merge queries?

Use relationships for reporting models, especially star schemas. Use Merge when you need a single flattened table for export or a specific transformation that cannot be done with relationships.

Can I join more than two tables?

Yes. In Model view, create a relationship for each pair. In Power Query, chain merges one after another, checking row counts after each step.

What is the difference between Inner and Left Outer join?

Inner keeps only rows with matches in both tables. Left Outer keeps every row from the first table and fills unmatched columns with null.

Why is my relationship line dashed?

A dashed line means the relationship is inactive. Only one relationship between two tables can be active at a time; right-click and set the one you want as active.

Can I join on more than one column?

In Power Query, hold Ctrl and select multiple columns on each side before clicking OK. In Model view, create a composite key column in Power Query first, then relate on that single column.