Joins in Tableau: Inner, Left, Right and Outer

Joins in Tableau: Inner, Left, Right and Outer

3 mins read2.7K Views Comment
Updated on Mar 29, 2022 10:31 IST

In this article, we will discuss different types of joins in tableau: Inner, left, right and full outer joins with step by step how to create joins in tableau.

2022_03_JOINS-IN-TABLEAU.jpg

In this article, we will discuss different joins in Tableau.

In the tableau, we have the tables in which the data are stored and data are stored in different tables. So to perform a depth analysis, we have to combine data from multiple tables. 

A join in Tableau means combining columns from one or more tables in a relational database. It also creates a set that can be saved as a table, or it can be saved as it is.

Let’s deep dive to get more information about joins in the tableau.

Table of Content:

Recommended online courses

Best-suited Tableau courses for you

Learn Tableau with these high-rated online courses

39.54 K
2 hours
– / –
45 hours
– / –
2 hours
Free
11 hours
Free
21 hours
Free
26 hours
Free
19 hours
Free
3 hours
Free
11 hours

What is Join in Tableau?

A join in Tableau means combining columns from one or more tables in a relational database. It also creates a set that can be saved as a table, or it can be saved as it is.

How to create a Join in Tableau

  • Connect the relevant data sources
    • Here, we will use the sample superstore data
2022_03_connect-the-data-join-in-tableau.jpg
  • Drag the first table to the canvas 
    • Here, the order table
2022_03_order-table-join-in-tableau.jpg
  • Select open from the dropdown to open the join canvas.

  • Join canvas looks like this
2022_03_join-canvas.jpg
  • Double click or drag another table to the join canvas.
    • Here the second table will be Return
2022_03_adding-another-table.jpg
  • Choose the desired join which you want
  • When finished, close the joined dialogue and join the canvas

Types of Join

Tableau offers 4 types of join: inner, left, right, and full outer join.

Let’s discuss them one by one:

Inner Join

  • Inner join combines the table that contains values that has matches in both the table
  • When a value doesn’t match across both the table, it dropped entirely
  • Represented as

Left Join

  • Left join combines all the values from the left table and corresponding matches from the right table
  • When the value in the left table doesn’t have a corresponding match in the right table, you will see a null value in the grid
  • Represented as:
2022_03_Left-join.jpg

Right Join

  • Right join combines all the values from the right table and corresponding matches from the left table
  • When the value in the right table doesn’t have a corresponding match in the left table, you will see a null value in the grid
  • Represented as:
2022_03_right-join.jpg

Full outer join

  • Full outer join combines all the values from both the tables
  • When a value from either of the table doesn’t have a match with the other table, you will see a null value in the grid
  • Represented as:

Understanding Join Clause

While joining the  two tables, we get

2022_03_join-clause.jpg

Join clauses are an expression that helps tableau to identify shared files between tables and methods to match the corresponding rows.

Join clause most often use the equality operator (=) which matches rows with the same value. There are other operators like < >, <, < =, >, >=.

Note: A join can have multiple join clauses.

Example: In a company, you want to make email-id of all the employees but the employee’s name and company domain both are in different columns. So it may be beneficial to join if:

“User name = User name” and “domain = domain”

Both the conditions will have to be true to be joined.

Common Join Issues

  • Different Capitalization: Name and name
  • Different Spelling: Boys and Boys’s
  • Data entry errors: Naukri and Naukari
  • Abbreviation: Naukri Pvt ltd and Naukri Private limited
  • Extra spaces

These field values are directly fixed in the join clause or work with the excluded values by clicking in the Excluded bars in the Summary of Join Result and using the cleaning operation in the profile card menu.

Conclusion

In this article, we have discussed different types of joins in tableau: Inner, left, right and full outer joins.

Hope this article will help you in your data analyst journey.

This article is a part of a complete tutorial of Tableau, focusing on Tableau certified data analysts and tableau desktop specialists. 

Through a series of articles, we will cover all the topics in-depth with examples.

Data Aggregation in Tableau
Data Types in Tableau
Create Table, line chart and Scatter Plot using Tableau Show Me
About the Author