01 / 20

Joins in
Tableau

Learn how to combine data from multiple tables using joins: the foundation of data blending in Tableau.

Tableau

What Is a Join?

A join combines columns from two or more tables into a single table based on a related column they share. Think of it like linking two spreadsheets together using a common ID.

Table A: Orders OrderID CustID 101 C1 102 C2 103 C3 104 C1 Join on CustID Table B: Customers CustID Name C1 Alice C2 Bob C4 Diana

Why Do Joins Matter?

Real-world data rarely lives in a single table. Sales figures, customer details, and product information are often stored separately. Joins let you bring them together for analysis.

Enrich Data
Add customer names to an orders table to see who bought what.
Analyze Across Sources
Combine product costs with sales revenue to calculate profit margins.
Find Gaps
Identify customers with no orders or orders with missing customer records.

The Join Key Concept

Every join requires a join condition: an expression that tells Tableau which rows from each table belong together. The most common condition is an equality match on a shared column.

1
Shared column: Both tables must have a column with compatible data (e.g., both have CustID).
2
Data types match: The join key columns must share the same data type: text to text, number to number.
3
Multiple keys: You can join on more than one column (e.g., CustID and Region) for more precise matching.

The Four Join Types

Tableau supports four join types. Each controls which rows appear in the result when there is no match between tables.

Inner Left Right Full Outer A B A B A B A B Only matching rows All from A + matches All from B + matches All rows from both

Inner Join: Only Matches

An inner join returns only the rows where the join key exists in both tables. Unmatched rows are discarded.

A B
\( A \cap B \)
Returned rows Discarded

Left Join: Keep All from Left

A left join returns all rows from the left table (Table A) plus any matching rows from the right table (Table B). Where there is no match, the right-side columns are filled with NULL.

A B Match All of A + matches from B Unmatched B rows: excluded

Right & Full Outer Joins

Right Join
All rows from the right table (Table B) are kept. Matching rows from the left table are included. Unmatched left-side columns become NULL.
Full Outer Join
All rows from both tables are kept. Where there is no match on either side, the missing columns fill with NULL.

Join vs. Relationship vs. Blend

Join Relationship Blend
Where Physical layer Logical layer Between data sources
Row-level merge ✓ Yes Deferred (smart) ✕ Aggregated
Duplicates risk Medium Low Low
Control over type Inner/Left/Right/Full Automatic Left only
Best for Same source, row matching Default in Tableau Cross-source linking

How to Create a Join in Tableau

1
Open the Data Source tab. Connect to your data source (Excel, database, CSV, etc.).
2
Drag your first table onto the canvas. This becomes the left table.
3
Double-click the table on the canvas to enter the physical layer (join mode).
4
Drag a second table next to the first. A join icon appears between them.
5
Click the join icon to configure: select the join type (Inner, Left, Right, Full Outer) and set the join key columns.
6
Verify the result in the data preview grid at the bottom to check for NULLs and duplicates.

Example 1: Inner Join

Orders
OrderIDCustID
101C1
102C2
103C3
Customers
CustIDName
C1Alice
C2Bob
C4Diana

Inner Join on CustID → Result:

OrderIDCustIDName
101C1Alice
102C2Bob

Example 2: Left Join

Same tables. Left Join on CustID → Result:

OrderIDCustIDName
101C1Alice
102C2Bob
103C3NULL

Example 3: Full Outer Join

Same tables. Full Outer Join on CustID → Result:

OrderIDCustIDName
101C1Alice
102C2Bob
103C3NULL
NULLC4Diana

Choosing the Right Join Type

Inner
Use when you only need rows that have data in both tables. Best for clean, complete datasets.
Left
Use when the left table is your primary source and you want to enrich it with optional data from the right.
Right
Rarely used: same as left but preserves the right table. Swap tables and use left join instead.
Full Outer
Use when you need a complete picture of all data, including mismatches on both sides.

Common Mistakes

✕ Wrong Join Key
Joining on the wrong column (e.g., OrderID to CustID) produces zero matches or random pairings.
✕ Duplicate Rows
If the join key is not unique, rows multiply. Joining Orders to Customers where one customer has 3 orders creates 3 result rows per customer.
✕ Ignoring NULLs
Left/Right/Full joins produce NULL values. Forgetting to handle NULLs leads to broken calculations and misleading totals.
✕ Type Mismatch
Joining a text "123" to a number 123 fails silently: Tableau returns no matches. Always check data types first.

Join Types Summary

Join Type Left Table Rows Right Table Rows NULLs?
Inner Only matched Only matched No
Left All Only matched Right side
Right Only matched All Left side
Full Outer All All Both sides

Question 1 of 5

You have an Orders table and a Customers table. You want to see only orders that have a matching customer. Which join type should you use?

Question 2 of 5

After performing a left join, you notice some rows have NULL values in columns from the right table. What does this mean?

Question 3 of 5

Table A has 5 rows and Table B has 4 rows. After a full outer join on a key where 3 rows match, what is the minimum number of rows in the result?

Question 4 of 5

In Tableau, where do you configure a physical join between two tables?

Question 5 of 5

A Products table has a text field "ProductID" and a Sales table has a number field "ProductID". You perform an inner join on ProductID and get zero results. What is the most likely cause?