Joins in Tableau: Inner, outer, left, or a right join in Tableau

365 Data Science · Beginner ·📊 Data Analytics & Business Intelligence ·8y ago

Key Takeaways

The video demonstrates how to use joins in Tableau, including inner, outer, left, and right joins, to merge multiple data sources and perform analysis.

Full Transcript

one of the most important aspects of your work in tableau is the data source you are using to perform analysis quite often the data will be stored in multiple locations and hence you will have to deal with a number of data sources which live in different environments nevertheless you are going to want to use all of the data available to you and run analysis on everything together the way we merge multiple data sources is by using joins for those of you who have already followed our program and especially our SQL videos you'll be familiar with what follows in this video so feel free to skip or continue watching as a refresher for the rest please follow along when we want to perform cross data table joins we want to combine two or more data tables to create a unique database how do we join separate data tables well there are a few ways to do that we can create an inner outer left or a right join let's open an excel file to demonstrate a bit better what each type of join represents here we have two very simple tables the first one shows us the age of three basketball players and the second one shows us the salary of basketball players please note that the two tables are different due to their last rows we have LeBron James in the first one and Kyrie Irving in the second okay let's say we would like to run some analysis and use the data available in both tables therefore as described earlier we have to use joints but how do we do that we can easily see that the two tables have one column in common the basketball player column this column will serve as a key when we put together the information from both tables a left join would mean that the left column of the first table will lead the way we will use it to create a table containing age and salary information about the three players we see here whenever we find one of these players to the right we'll add their salary in the new table as you can see here if their name is not present to the right which is the case with LeBron James's salary we will have a null value in the table if a player's name is not present in the left column of the first table we will not include any information about them as this is a left join and any rows which are not present in the key field of the left table are omitted in the new table a right join functions in the same way however this time the left column of the second table leads the way Kyrie Irving replaces LeBron James who is not present in the left table hence the only missing value would be Kyrie Irving's H given that the only information we have about him is in the right table the case when we are interested in the intersection of the two tables only is called an inner join this is when we create a table that contains rows where we have an exact match between the key fields we are joining the two tables with in our case basketball player this time the newly created table contains two rows only both tables contain information about these players hence this is an inner join an outer join would be the opposite case we add all rows of the two tables regardless of whether there is a match in the key field we are linking with when there isn't we would have null values which is the case with both LeBron James and Kyrie Irving here these are the main principles you need to understand when deciding whether to create a left right inner or outer join in tableau depending on your needs and the specific case you were working on you will be able to apply one of these structures and join your data

Original Description

👉🏻 Download Our Free Data Science Career Guide: https://bit.ly/2POLaN8 👉🏻 Sign up for Our Complete Data Science Training with 57% OFF: https://bit.ly/3iKD0lv Using joins in Tableau – this is the way we merge multiple data sources. One of the most important aspects of your work in Tableau is the data source you are using to perform analysis. Quite often the data will be stored in multiple locations, and hence you will have to deal with a number of data sources which live in different environments. Nevertheless, you are going to want to use all of the data available to you and run analysis on everything together. When we want to perform ‘cross data table joins’ we want to combine two or more data tables to create a unique database. How do we join separate data tables? Well, there are a few ways to do that. We can create an inner, outer, left, or a right join. Depending on your needs and on the specific case you are working on, you will be able to apply one of these structures and join your data. ► Consider hitting the SUBSCRIBE button if you LIKE the content: https://www.youtube.com/c/365DataScience?sub_confirmation=1 ► VISIT our website: https://bit.ly/365ds 🤝 Connect with us LinkedIn: https://www.linkedin.com/company/365datascience/ 365 Data Science is an online educational career website that offers the incredible opportunity to find your way into the data science world no matter your previous knowledge and experience. We have prepared numerous courses that suit the needs of aspiring BI analysts, Data analysts and Data scientists. We at 365 Data Science are committed educators who believe that curiosity should not be hindered by inability to access good learning resources. This is why we focus all our efforts on creating high-quality educational content which anyone can access online. Check out our Data Science Career guides: https://www.youtube.com/playlist?list=PLaFfQroTgZnyQFq4nUfb-w2vEopN3ULMb #tableau #datascience #spreadsheets
Watch on YouTube ↗ (saves to browser)
Sign in to unlock AI tutor explanation · ⚡30

Playlist

Uploads from 365 Data Science · 365 Data Science · 56 of 60

1 Population vs Sample
Population vs Sample
365 Data Science
2 Data Science & Statistics: Levels of measurement
Data Science & Statistics: Levels of measurement
365 Data Science
3 Statistics Tutorials: Mean, median and mode
Statistics Tutorials: Mean, median and mode
365 Data Science
4 Skewness
Skewness
365 Data Science
5 What is a distribution?
What is a distribution?
365 Data Science
6 The Normal Distribution
The Normal Distribution
365 Data Science
7 Central limit theorem
Central limit theorem
365 Data Science
8 Student's T Distribution
Student's T Distribution
365 Data Science
9 Type I error vs Type II error
Type I error vs Type II error
365 Data Science
10 Hypothesis testing. Null vs alternative
Hypothesis testing. Null vs alternative
365 Data Science
11 The linear regression model
The linear regression model
365 Data Science
12 Simple linear regression model. Geometrical representation
Simple linear regression model. Geometrical representation
365 Data Science
13 INDEX and MATCH application of the two functions separately and combined [Advanced Excel]
INDEX and MATCH application of the two functions separately and combined [Advanced Excel]
365 Data Science
14 INDIRECT Excel Function: How it works and when to use it [Advanced Excel]
INDIRECT Excel Function: How it works and when to use it [Advanced Excel]
365 Data Science
15 VLOOKUP and MATCH another useful functions combination [Advanced Excel]
VLOOKUP and MATCH another useful functions combination [Advanced Excel]
365 Data Science
16 VLOOKUP COLUMN and ROW - Handle large data tables with ease [Advanced Excel]
VLOOKUP COLUMN and ROW - Handle large data tables with ease [Advanced Excel]
365 Data Science
17 The ELIF keyword [Python Fundamentals]
The ELIF keyword [Python Fundamentals]
365 Data Science
18 Working with Tuples in Python
Working with Tuples in Python
365 Data Science
19 Database Terminology - A Beginners Guide
Database Terminology - A Beginners Guide
365 Data Science
20 Relational Database Essentials
Relational Database Essentials
365 Data Science
21 Database vs Spreadsheet - Advantages and Disadvantages
Database vs Spreadsheet - Advantages and Disadvantages
365 Data Science
22 Conditional Statements and Loops
Conditional Statements and Loops
365 Data Science
23 Backpropagation – The Math Behind Optimization
Backpropagation – The Math Behind Optimization
365 Data Science
24 Monte Carlo: Forecasting Stock Prices Part I
Monte Carlo: Forecasting Stock Prices Part I
365 Data Science
25 Monte Carlo: Forecasting Stock Prices Part II
Monte Carlo: Forecasting Stock Prices Part II
365 Data Science
26 Monte Carlo: Forecasting Stock Prices Part III
Monte Carlo: Forecasting Stock Prices Part III
365 Data Science
27 365 Data Science Online Program
365 Data Science Online Program
365 Data Science
28 Data frames - Creating a data frame
Data frames - Creating a data frame
365 Data Science
29 Data Science & Statistics: Slicing a matrix in R
Data Science & Statistics: Slicing a matrix in R
365 Data Science
30 Data frames in R - Exporting data in R
Data frames in R - Exporting data in R
365 Data Science
31 Data frames in R - Transforming data PART II
Data frames in R - Transforming data PART II
365 Data Science
32 Data Frames in R - Subsetting a data frame
Data Frames in R - Subsetting a data frame
365 Data Science
33 Data Science & Statistics: Matrix arithmetic in R
Data Science & Statistics: Matrix arithmetic in R
365 Data Science
34 Data Science & Statistics: Indexing an element from a matrix
Data Science & Statistics: Indexing an element from a matrix
365 Data Science
35 Data Frames in R - Extending a data frame
Data Frames in R - Extending a data frame
365 Data Science
36 Data Science & Statistics: Creating a matrix in R FASTER
Data Science & Statistics: Creating a matrix in R FASTER
365 Data Science
37 Data Science & Statistics: Creating a Matrix in R
Data Science & Statistics: Creating a Matrix in R
365 Data Science
38 Data frames - Importing data in R
Data frames - Importing data in R
365 Data Science
39 Data frames in R - Getting a sense of your data
Data frames in R - Getting a sense of your data
365 Data Science
40 Data frames in R - Transforming data PART I
Data frames in R - Transforming data PART I
365 Data Science
41 Data frames in R - Import a CSV in R
Data frames in R - Import a CSV in R
365 Data Science
42 Data Science & Statistics: Matrix operations in R
Data Science & Statistics: Matrix operations in R
365 Data Science
43 Data Science & Statistics: Matrix recycling in R
Data Science & Statistics: Matrix recycling in R
365 Data Science
44 Tableau vs Excel: When to use Tableau and when to use Excel
Tableau vs Excel: When to use Tableau and when to use Excel
365 Data Science
45 Download Tableau: Learn how to download Tableau Public
Download Tableau: Learn how to download Tableau Public
365 Data Science
46 Connecting data sources: Useful tips when connecting data sources to Tableau
Connecting data sources: Useful tips when connecting data sources to Tableau
365 Data Science
47 The Tableau interface: See how to navigate through the Tableau interface
The Tableau interface: See how to navigate through the Tableau interface
365 Data Science
48 Tableau data visualization: Create your first Tableau visualization!
Tableau data visualization: Create your first Tableau visualization!
365 Data Science
49 Duplicating sheets: This is how to duplicate a sheet in Tableau
Duplicating sheets: This is how to duplicate a sheet in Tableau
365 Data Science
50 Build a table in Tableau: The steps needed to create a simple table in Tableau
Build a table in Tableau: The steps needed to create a simple table in Tableau
365 Data Science
51 Custom fields in Tableau: Using Tableau operators to create custom fields
Custom fields in Tableau: Using Tableau operators to create custom fields
365 Data Science
52 Custom fields in Tableau: Add calculations to tables through custom fields
Custom fields in Tableau: Add calculations to tables through custom fields
365 Data Science
53 Totals in Tableau: Learn how to display subtotals and totals in Tableau
Totals in Tableau: Learn how to display subtotals and totals in Tableau
365 Data Science
54 Gross Margin calculation in Tableau
Gross Margin calculation in Tableau
365 Data Science
55 What is a filter in Tableau: Set up a filter in Tableau to specify the data you want to show
What is a filter in Tableau: Set up a filter in Tableau to specify the data you want to show
365 Data Science
Joins in Tableau: Inner, outer, left, or a right join in Tableau
Joins in Tableau: Inner, outer, left, or a right join in Tableau
365 Data Science
57 Building a Tableau dashboard: Three types of charts you want to have in a Tableau dashboard
Building a Tableau dashboard: Three types of charts you want to have in a Tableau dashboard
365 Data Science
58 Creating great looking charts in Tableau: Real life Exercise on charts in Tableau
Creating great looking charts in Tableau: Real life Exercise on charts in Tableau
365 Data Science
59 Joins in Tableau: Choose the correct join type
Joins in Tableau: Choose the correct join type
365 Data Science
60 How to make a data check in Tableau: A quick data check is better than no data check
How to make a data check in Tableau: A quick data check is better than no data check
365 Data Science

This video teaches how to use joins in Tableau to merge multiple data sources and perform analysis. It covers the different types of joins, including inner, outer, left, and right joins, and how to apply them in Tableau.

Key Takeaways
  1. Open Tableau and connect to a data source
  2. Identify the data tables to be joined
  3. Determine the type of join to use (inner, outer, left, or right)
  4. Create a new table by joining the data tables
  5. Perform data analysis on the joined data
💡 The type of join to use depends on the specific case and the needs of the analysis. Understanding the differences between inner, outer, left, and right joins is crucial for effective data analysis.

Related AI Lessons

The Attention Economy: Your Attention Is Worth More Than Gold
Learn how the attention economy works and why your focus is a valuable resource in the digital age
Medium · Data Science
What I Learned Building a Tableau Dashboard for Deloitte’s Data Analytics Simulation
Learn how to build a Tableau dashboard for data analytics by exploring a real-world project for Deloitte's simulation, focusing on machine downtime and pay equity
Medium · Data Science
Six Months, 9,541 Restaurant Development Records, and What the Data Actually Says
Analyzing 9,541 restaurant development records reveals insights into the industry, showing what the data actually says about trends and patterns
Medium · Data Science
CRM Analitiği ile Müşteri Değerini Anlamak: RFM, CLTV ve Predictive CLTV Rehberi
Learn how to use CRM analytics to understand customer value with RFM, CLTV, and Predictive CLTV
Medium · Data Science
Up next
Salesforce Flow New Features (Summer '26) | Open Record, URL & Show Toast Messages
AITECHONE
Watch →