Joins in
Tableau
Learn how to combine data from multiple tables using joins: the foundation of data blending in 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.
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.
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.
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 Join: Only Matches
An inner join returns only the rows where the join key exists in both tables. Unmatched rows are 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.
Right & Full Outer Joins
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
Example 1: Inner Join
| OrderID | CustID |
|---|---|
| 101 | C1 |
| 102 | C2 |
| 103 | C3 |
| CustID | Name |
|---|---|
| C1 | Alice |
| C2 | Bob |
| C4 | Diana |
Inner Join on CustID → Result:
| OrderID | CustID | Name |
|---|---|---|
| 101 | C1 | Alice |
| 102 | C2 | Bob |
Example 2: Left Join
Same tables. Left Join on CustID → Result:
| OrderID | CustID | Name |
|---|---|---|
| 101 | C1 | Alice |
| 102 | C2 | Bob |
| 103 | C3 | NULL |
Example 3: Full Outer Join
Same tables. Full Outer Join on CustID → Result:
| OrderID | CustID | Name |
|---|---|---|
| 101 | C1 | Alice |
| 102 | C2 | Bob |
| 103 | C3 | NULL |
| NULL | C4 | Diana |
Choosing the Right Join Type
Common Mistakes
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?