Skip to player
Skip to main content
Skip to footer
Search
Connect
Watch fullscreen
Like
Comments
Bookmark
Share
Add to Playlist
Report
9. Value Operations - Split Values Video
eTrainerbox
Follow
6/1/2025
Category
📚
Learning
Transcript
Display full video transcript
00:00
Let's talk about split value value operations.
00:04
In Tableau Prep, you're able to split text based on values on automatic or custom defined delimiters.
00:11
Splitting can be a valuable tool that can help derive new calculations and values to extract data from our fields.
00:19
To split values, go to your More Options menu, choose Split Values, and then you'll have the option between Automatic and Custom Split.
00:27
An automatic split will derive the split by using common delimiters.
00:31
Tableau Prep will automatically decide which delimiter to split by and how many splits should be shown.
00:38
If Tableau Prep doesn't get it right, you can always go ahead and do a custom split.
00:43
A custom split will allow you to define the delimiter and the number of columns for the split.
00:48
Now it should be noted that if you're doing an automatic or a custom split, you're always going to get a calculation out of it.
00:56
Now you can also create a calculated split by hand, but the format will be the same.
01:01
So if you're doing an automatic, a custom, or a calculated split, you'll always get a calculation with a very similar structure to it.
01:08
The calculation will be set up with the split function.
01:10
You'll identify the field in question in the first part of your calculation.
01:14
Then you'll call out which delimiter you're using.
01:17
Here, in our example, we're using a dash.
01:19
And then the third argument in the function is the number of columns that you want to split to.
01:24
And then automatically your calculated split will have a trim around it to get rid of any extra spaces.
01:31
If you've used Tableau Desktop at all, the split commands will be almost identical to those.
01:36
But if you haven't, they are relatively straightforward.
01:39
And we're going to be going through some examples in Tableau Prep right now.
01:43
So let's hop in our flow and create some splits off of our own data sources.
01:47
Alright, so we're back in Tableau Prep.
01:49
Let's go to our plans for high school graduates clean step.
01:52
Select it here.
01:53
And then we're going to go to our school name column.
01:56
And we're going to select more options.
01:58
And for more options we'll go down to split values.
02:01
And for this option, we're going to choose custom split first.
02:04
And then we'll get into automatic splitting after.
02:07
Let's go ahead and choose custom split.
02:09
And we're going to call out our separator as a single dash.
02:13
And we're going to want to pull in the first two fields.
02:16
Now you'll see, even before we split the field here,
02:19
that we have a dash separating this first part and the second part of our field.
02:25
Now the first part is our district, spoiler,
02:28
and the second part is the actual school name.
02:31
So we want to break this out because we're going to be combining data sets
02:35
and that district name is going to be useful,
02:37
especially when we're getting into our district part of the flow.
02:42
And if we ever want to combine these school level metrics with our district level metrics,
02:47
we're going to need that district called out.
02:50
So it's really important that we're going to be able to split this field
02:53
so that we can aggregate these data sources together at the proper level.
02:57
Let's go ahead and choose split and see what happens.
03:00
So right away we can see that we've got a split in two places.
03:04
We've got split one and split two.
03:05
It's called out in the name.
03:07
And when we look quickly, we can see our district names are coming out pretty clean.
03:12
And our school names look good too.
03:14
Now I know that this says school name, but it's really a concatenation of district and school.
03:20
So we want to blow these out so that we can do those proper joins and unions and aggregations later in our flow.
03:27
Now we'll get to renaming and cleaning these up a little bit in the next few lessons,
03:30
but for now let's go to our next data sources in our flow and apply some more splits.
03:35
Next we're going to go to our educator evaluation.
03:38
Hit the clean step.
03:39
We're going to go to school name again.
03:41
So we're going to go over to more options, choose split values.
03:45
And instead of a custom split, we're going to use automatic split and see how this turns out.
03:50
Tableau Prep is pretty good at this as well as Tableau Desktop.
03:53
So let's see if it gets it right.
03:55
We'll hit automatic split and very quickly we get our split out here.
04:00
And yes, it is using that common delimiter, the dash that we had called out manually in the last step.
04:06
So this is looking good.
04:08
Again, we'll clean these names and fields up a little bit in the next few lessons.
04:12
Let's go over to our SAT performance clean step.
04:15
We're going to click on school name, more options, split values, and automatic split again.
04:22
These are the same types of fields, right?
04:24
They're all our school names and we're blowing them out to get district and school separated.
04:29
So we can perform the same types of actions on each.
04:33
Now let's go down to teacher data, do this one more time.
04:36
We're going to hit our more options on our school name, split, automatic split.
04:41
Alright, looking good.
04:43
And that's it for now on our splits.
04:45
And I know that we did these same actions a few times here.
04:49
And again, we could do these a little more efficiently by unioning first,
04:53
but we always run the risk of unioning fields that aren't fully cleaned up.
04:57
And then we may not be able to clean them in the same way after we've done that
05:01
because some of these data sources are not exactly like the others.
05:04
So we may require different types of cleaning for each source before we do the combination.
05:09
So we're being very safe here.
05:11
We're taking it one source at a time, cleaning it fully,
05:14
and then we're going to be doing our unions and joins.
05:17
And everything should come out really clean if we do that right.
05:20
Next up we'll be looking at how to directly edit our values from our profile pane.
05:25
ульf
05:27
003
05:32
003
05:33
004
05:34
0033
05:37
0023
05:38
003
05:39
0023
05:40
003
05:40
00 aims
05:41
003
05:42
0066
05:43
007
05:44
0075
05:45
006
Recommended
5:24
|
Up next
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
1:19
Test 2
eTrainerbox
5/20/2025
4:48
3. Value Distribution Video
eTrainerbox
5/9/2025
0:52
11. ASSIGNMENT- Connecting to Data Video
eTrainerbox
5/9/2025
4:15
10. SOLUTION- Connecting to Data Video
eTrainerbox
5/9/2025
5:03
9. Refreshing Data 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
13:29
Data Connection Examples 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
1:05
Intro to Tableau Prep 1. Connecting to Data Video
eTrainerbox
10/27/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
0:35
8 Things to Do in the Morning to Improve Productivity
Martha Stewart Living
9/22/2023