Joins in Tableau: Choose the correct join type
Key Takeaways
The video demonstrates how to perform joins in Tableau, specifically using inner and left joins to combine data from two tables, audio book sales and audio book reviews, based on the transaction ID column.
Full Transcript
as usual the first thing we need to do when starting a new project is load our data our to file sources are audio book reviews and audio book sales let's connect them to tableau here's the audio book sales file in the same folder we also have the audio book reviews file we'll need both so I'll click on add and we'll load the other file too in order to be able to use the information of both tables at the same time we'll have to combine them somehow what we want to obtain is a unique table containing information about all transactions for all audio books and the respective reviews left by clients whenever they chose to do so the transaction ID column is the perfect link between the two files as it is available in both and could serve as a common field based on which we could link the two tables together so one of the main aspects we'll explore in this lesson is how to create a connection between two tables in tableau please remember that we will distinguish the terms data connection and table connection table connection is performed by functionalities like joining or blending it refers to combining data from two or more data sources data connection instead represents a single source connection between tableau and a data source such as an Excel workbook or an SQL database when we imported the second file tableau did some of the work for us in the background and created a connection between the two files the symbol you see here is an indication we've created an inner join technically speaking when creating a join tableau sends a query to the database the join is implemented on the relevant tables at the database level and the output of the operation is brought back to tableau where it is ready to be used for analysis and inner joy means that the two tables we've added have a field in common and we can combine them using that field let me hover my mouse over the symbol tableau indicates that it has created an inner join using the parameter audiobook name we don't want that we want to link the two tables according to the transaction ID parameter as our analysis will be focused on user sales and reviews so I'll click on the inner join symbol which will open the join menu first off let me substitute the field we use in order to create a connection between the two tables I would like to create a connection using the transaction ID field and here we are here's a preview of the table we created through an inner join and transaction ID has the primary key as shown in the diagram when we create an inner join between two tables we consider their intersection the situation where the primary key is found in both tables to give you an example if a person who has a given transaction ID purchased an audiobook but did not leave a review then they won't be included in this table an inner join would require users to have purchased an audiobook to have left a rating and both the date of purchase and the date when the rating was posted to be known basically it contains only the rows in which we have a transaction ID a date of purchase a date of review a review rating and information regarding which was the audiobook that was purchased and rated for example all the cases when a person bought an audiobook but did not rate it are not considered do you think this information is important do we want to be able to understand how reviews impacted sales and whether we can see a pattern in total purchases with respect to views of course we'll need this information and if we use an inner join we are not going to have it therefore we'll need a different type of join one that includes the information about purchases and people who did not rate an audiobook so looking at the tiny diagram we have here I am going to select a left join given that the audio book sales file is on the left side we want to have a table that contains information regarding audiobook purchases all of the audiobook purchases and the cases when people who bought these books provided a rating and a left join is more suitable than an inner join in this case okay great in our next lesson we'll make a check and see whether the data we've connected to tableau is correct this will do for now thanks for watching
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
In order to be able to use the information of two tables at the same time, we’ll have to use joins in Tableau. What we want to obtain is a unique table containing information about all transactions for all audiobooks, and the respective reviews left by clients whenever they chose to do so. The Transaction ID column is the perfect link between the two files, as it is available in both and could serve as a common field based on which we could link the two tables together.
So, one of the main aspects we’ll explore in this lesson is how to create a connection between two tables in Tableau.
Please remember that we will distinguish the terms ‘data connection’ and ‘table connection’. ‘Table connection’ is performed by functionalities like joining or blending. It refers to combining data from two or more data sources.
‘Data connection’, instead, represents a single data source connection between Tableau and a data source, such as an Excel Workbook or an SQL database.
Technically speaking, when creating a join, Tableau sends a query to the database. The join is implemented on the relevant tables at the database level, and the output of the operation is brought back to Tableau, where it is ready to be used for analysis.
An inner join means that the two tables we’ve added have a field in common, and we can combine them using that field. Let me hover my mouse over the symbol. Tableau indicates that it has created an inner join using the parameter “audiobook name”. We don’t want that. We want to link the two tables according to the Transaction ID parameter, as our analysis will be focused on user sales and reviews.
► 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: h
Watch on YouTube ↗
(saves to browser)
Sign in to unlock AI tutor explanation · ⚡30
Playlist
Uploads from 365 Data Science · 365 Data Science · 59 of 60
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
▶
60
Population vs Sample
365 Data Science
Data Science & Statistics: Levels of measurement
365 Data Science
Statistics Tutorials: Mean, median and mode
365 Data Science
Skewness
365 Data Science
What is a distribution?
365 Data Science
The Normal Distribution
365 Data Science
Central limit theorem
365 Data Science
Student's T Distribution
365 Data Science
Type I error vs Type II error
365 Data Science
Hypothesis testing. Null vs alternative
365 Data Science
The linear regression model
365 Data Science
Simple linear regression model. Geometrical representation
365 Data Science
INDEX and MATCH application of the two functions separately and combined [Advanced Excel]
365 Data Science
INDIRECT Excel Function: How it works and when to use it [Advanced Excel]
365 Data Science
VLOOKUP and MATCH another useful functions combination [Advanced Excel]
365 Data Science
VLOOKUP COLUMN and ROW - Handle large data tables with ease [Advanced Excel]
365 Data Science
The ELIF keyword [Python Fundamentals]
365 Data Science
Working with Tuples in Python
365 Data Science
Database Terminology - A Beginners Guide
365 Data Science
Relational Database Essentials
365 Data Science
Database vs Spreadsheet - Advantages and Disadvantages
365 Data Science
Conditional Statements and Loops
365 Data Science
Backpropagation – The Math Behind Optimization
365 Data Science
Monte Carlo: Forecasting Stock Prices Part I
365 Data Science
Monte Carlo: Forecasting Stock Prices Part II
365 Data Science
Monte Carlo: Forecasting Stock Prices Part III
365 Data Science
365 Data Science Online Program
365 Data Science
Data frames - Creating a data frame
365 Data Science
Data Science & Statistics: Slicing a matrix in R
365 Data Science
Data frames in R - Exporting data in R
365 Data Science
Data frames in R - Transforming data PART II
365 Data Science
Data Frames in R - Subsetting a data frame
365 Data Science
Data Science & Statistics: Matrix arithmetic in R
365 Data Science
Data Science & Statistics: Indexing an element from a matrix
365 Data Science
Data Frames in R - Extending a data frame
365 Data Science
Data Science & Statistics: Creating a matrix in R FASTER
365 Data Science
Data Science & Statistics: Creating a Matrix in R
365 Data Science
Data frames - Importing data in R
365 Data Science
Data frames in R - Getting a sense of your data
365 Data Science
Data frames in R - Transforming data PART I
365 Data Science
Data frames in R - Import a CSV in R
365 Data Science
Data Science & Statistics: Matrix operations in R
365 Data Science
Data Science & Statistics: Matrix recycling in R
365 Data Science
Tableau vs Excel: When to use Tableau and when to use Excel
365 Data Science
Download Tableau: Learn how to download Tableau Public
365 Data Science
Connecting data sources: Useful tips when connecting data sources to Tableau
365 Data Science
The Tableau interface: See how to navigate through the Tableau interface
365 Data Science
Tableau data visualization: Create your first Tableau visualization!
365 Data Science
Duplicating sheets: This is how to duplicate a sheet in Tableau
365 Data Science
Build a table in Tableau: The steps needed to create a simple table in Tableau
365 Data Science
Custom fields in Tableau: Using Tableau operators to create custom fields
365 Data Science
Custom fields in Tableau: Add calculations to tables through custom fields
365 Data Science
Totals in Tableau: Learn how to display subtotals and totals in Tableau
365 Data Science
Gross Margin calculation in Tableau
365 Data Science
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
365 Data Science
Building a Tableau dashboard: Three types of charts you want to have in a Tableau dashboard
365 Data Science
Creating great looking charts in Tableau: Real life Exercise on charts in Tableau
365 Data Science
Joins in Tableau: Choose the correct join type
365 Data Science
How to make a data check in Tableau: A quick data check is better than no data check
365 Data Science
More on: Data Literacy
View skill →Related Reads
📰
📰
📰
📰
[ZH] Virginia bans sale of geolocation data [ZH]
Dev.to AI
Format-preserving encryption for PII in Polars: FF3-1 vs FF1 for RUT, CPF, and DNI
Dev.to · Felipe Carvajal Brown
The Data Analyst Lens
Medium · Data Science
Why do people search the same thing in different ways?
Medium · Data Science
🎓
Tutor Explanation
DeepCamp AI