Skip to player
Skip to main content
Skip to footer
Search
Connect
Watch fullscreen
Like
Bookmark
Share
Add to Playlist
Report
10. SOLUTION- Connecting to Data Video
eTrainerbox
Follow
5/9/2025
Category
📚
Learning
Transcript
Display full video transcript
00:00
So now we're going to go through the solution walkthrough for the Connecting to Data homework.
00:04
First up, we need to connect to our data source.
00:07
So let's go ahead and choose Connect to Data.
00:09
We're going to go down to a text file.
00:12
We'll navigate to our homework number one Connecting to Data data source,
00:16
and we'll choose one of our World Happiness data sources.
00:20
For now, we'll click on 2020 and choose Open.
00:23
Next up, we're going to want to union all of those data sources that we saw in the folder together.
00:28
So we'll go over to Multiple Files, and we're going to choose Wildcard Union.
00:34
We're going to want to search in our homework one Connecting to Data directory.
00:37
We don't need to include subfolders because there are none.
00:41
We're going to include our files, and we could do a matching pattern here,
00:46
or we could just choose all of our files by choosing blank.
00:50
Now, it depends where you've saved the file to,
00:52
but if you're going to do a matching pattern, you could choose World Happiness,
00:57
and put an asterisk at the end, hit Enter, and it will include all of our files.
01:03
We're going to go ahead and hit Apply so that all of our files are unioned in,
01:07
and you'll know that that worked based on our file paths being added down at the bottom.
01:12
This is a new column that we can use to filter our data later on.
01:16
Next, we're going to go to our Data Sample and Customize that.
01:21
For this option, we're going to go ahead and choose Use All Data,
01:24
because we want to use all of the data inside our flow.
01:27
We don't want to do any sampling.
01:30
Now, our data is small enough that this won't matter much,
01:32
but if we were using a larger data set, you may not want to use this option.
01:37
Next, we're going to limit the number of fields that we're bringing in,
01:40
because we do have quite a bit over here on the right-hand side.
01:43
We have 43 fields available, so we're going to cut that down.
01:48
Let's go ahead and deselect all of our fields
01:50
and just add those that we need for the rest of the flow.
01:54
We're going to click on Country, Region, Happiness Rank, Happiness Score, Overall Rank.
02:02
There we go.
02:03
Then we're going to want Ladder Score and File Paths.
02:07
Again, we want File Paths so that we can determine which data source we're pulling from,
02:12
and we can use this year to parse that out as a separate field later.
02:17
Next up, we're going to change a data type.
02:20
So instead of Happiness Rank being a number whole,
02:23
we're going to change that over to be a string value,
02:26
and then we're going to go ahead and change our Overall Rank field to be named something else.
02:31
Let's go ahead and change it to Overall Happiness Rank.
02:38
And we've done that just by double-clicking inside our Name field
02:41
and hitting Enter once we've renamed.
02:44
Next, we're going to apply a filter on this data source.
02:48
So we're going to hit Filter Values at the top.
02:50
So we're going to go ahead and filter out any data that is less than 7.
02:55
We want to find the happiest places,
02:58
so we're going to apply this filter to only choose those that have a 7 out of 10 or greater.
03:04
So to do this, we'll just type in Happiness Score, hit Enter.
03:09
We're going to say greater than 7.
03:12
So now this is a Boolean field.
03:14
It's only going to filter to the true values and include those in the flow going forward,
03:19
and that will only be those for the Happiness Score that is greater than 7.
03:24
Let's go ahead and hit Save,
03:27
and our calculation will be applied to filter our data down.
03:30
Next, we're going to refresh our data just in case we had anything added to our directory.
03:36
We're going to do that by going up top and just choosing Refresh Data.
03:41
You'll notice that we don't have the same drop-down that we saw before in our prior lesson,
03:45
and that's because we only have one source here available.
03:48
So just to recap, we've completed all of our changes.
03:51
We've removed fields, changed our data types, renamed our fields, applied filters,
03:58
done a wildcard union, and chose not to sample our data.
04:04
All right, that's looking good.
04:06
Hopefully you had fun in this homework.
04:09
Next up is our section on examining and filtering our data.
04:13
We'll see you next time.
04:14
We'll see you next time.
04:15
We'll see you next time.
04:16
We'll see you next time.
04:17
We'll see you next time.
04:18
We'll see you next time.
04:19
We'll see you next time.
04:20
We'll see you next time.
04:21
We'll see you next time.
04:22
We'll see you next time.
04:23
We'll see you next time.
04:24
We'll see you next time.
04:25
We'll see you next time.
04:26
We'll see you next time.
04:27
We'll see you next time.
04:28
We'll see you next time.
04:29
We'll see you next time.
04:30
We'll see you next time.
04:31
We'll see you next time.
04:32
We'll see you next time.
04:33
We'll see you next time.
04:34
We'll see you next time.
04:35
We'll see you next time.
04:36
We'll see you next time.
Recommended
0:52
|
Up next
11. ASSIGNMENT- Connecting to Data Video
eTrainerbox
5/9/2025
13:29
Data Connection Examples Video
eTrainerbox
5/9/2025
5:03
9. Refreshing Data Video
eTrainerbox
5/9/2025
1:05
Intro to Tableau Prep 1. Connecting to Data Video
eTrainerbox
10/27/2024
21:01
Video Solutions
Beasley Digital
4/17/2025
5:24
9. SOLUTION- Examining - Filtering Video
eTrainerbox
6/7/2025
1:02
8. ASSIGNMENT- Examining - Filtering Video
eTrainerbox
6/7/2025
3:37
Highlighting
eTrainerbox
6/7/2025
5:26
9. Value Operations - Split Values Video
eTrainerbox
6/1/2025
1:19
Test 2
eTrainerbox
5/20/2025
4:48
3. Value Distribution Video
eTrainerbox
5/9/2025
5:22
8. Data Sampling Video
eTrainerbox
5/9/2025
4:03
7. Text Configuration Video
eTrainerbox
5/9/2025
6:46
6. Input Cleaning Video
eTrainerbox
5/9/2025
8:24
4. Wildcard Unions Video
eTrainerbox
5/9/2025
1:35
Understanding Data Connection Types in Tableau Prep
eTrainerbox
5/9/2025
1:25
1 - Installing R
eTrainerbox
12/6/2024
11:47
2 - Data science with R A case study
eTrainerbox
12/6/2024
6:47
1 - R in context
eTrainerbox
12/6/2024
1:27
1 - Make your data make sense
eTrainerbox
11/29/2024
6:27
test 2
eTrainerbox
5/19/2025
0:51
Former Aide Claims She Was Asked to Make a ‘Hit List’ For Trump
Veuer
9/27/2023
1:08
Musk’s X Is ‘the Platform With the Largest Ratio of Misinformation or Disinformation’ Amongst All Social Media Platforms
Veuer
9/27/2023
4:50
59 companies that are changing the world: From Tesla to Chobani
Fortune
9/27/2023
0:46
3 Things to Know About Coco Gauff's Parents
People
9/23/2023