From the course: Complete Guide to Tableau for Data Scientists
Unlock the full course today
Join today to access over 24,700 courses taught by industry experts.
Using calculations in a join - Tableau Tutorial
From the course: Complete Guide to Tableau for Data Scientists
Using calculations in a join
- [Instructor] The most common use case for calculations is when we want to create a calculated field, which will create a new column in our data. But there's another really useful thing we can do in calculations and that's when we're trying to join two tables together, where we need to manipulate the data in one of the columns to match the data in the other column as part of the join or the relationship. To look at that, let's take a look at this data. So I'm looking at the sum of sales broken down by each of the four regions in our data. Now I have a second data source that actually lists all of the number of stores for each of the regions. Now I need to import that data in because I want to see how does the sales per store stack up. In order do that, we need to add in our second data set. So I'm going to go to the top of my data pane. Going to right click on the data source name, click edit data source. I'm going to add a connection to my file. Now this is a text file, it's a CSV…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
-
-
-
-
-
How do calculations work in Tableau?7m 35s
-
(Locked)
Understanding the order of operations in calculation6m 39s
-
(Locked)
Manipulating strings using string functions8m 14s
-
(Locked)
Manipulating dates with date functions7m 55s
-
(Locked)
Creating logic calculations using IF functions6m 29s
-
(Locked)
How do table calculations work?8m 13s
-
(Locked)
Table calc directions6m 41s
-
(Locked)
What are Level of Detail (LOD) calculations?3m 54s
-
(Locked)
EXCLUDE LOD calculations5m 6s
-
(Locked)
INCLUDE LOD calculations3m 56s
-
(Locked)
FIXED LOD calculations4m 31s
-
(Locked)
Using calculations in a join7m 1s
-
(Locked)
Challenge: Calculations1m 21s
-
(Locked)
Solution: Calculations6m
-
-
-
-
-
-
-