From the course: Power BI Data Methods (2019)
Unlock the full course today
Join today to access over 22,600 courses taught by industry experts or purchase this course individually.
Splitting fields
- [Instructor] We can split a field into two or more fields based on a selected delimiter, number of characters or position. Here, we see that we separate the full US zip code that includes both the five-digit zip code and the four-digit delivery code within the zip code into two separate fields. We use the dash as a delimiter, or separator, to split the two fields on. In the Power BI NOAA station list file, go the the query for the stations. Let's rename this query NOAA Stations. We first need to remove the Changed Type step, because we don't have a column to reference. We can see that we have a step-level error message. It says, "'Column2' of the table was not found." Remember, the Power BI initially separated the query into two columns. We changed the query so that Column2 does not exist anymore. We can click on the little X to remove the Changed Type step. We now have all our data in a single column. To split…
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
-
-
-
-
-
-
(Locked)
Leveraging metadata1m 28s
-
(Locked)
Leveraging data types2m 49s
-
(Locked)
Making initial field transformations4m 30s
-
(Locked)
Splitting fields3m 5s
-
(Locked)
Merging fields1m 56s
-
Cleaning text fields2m 7s
-
(Locked)
Transforming numerical fields2m 18s
-
(Locked)
Removing or replacing values2m 36s
-
(Locked)
Filtering and removing duplicates2m 56s
-
(Locked)
Accessing native query in cleaning4m 40s
-
(Locked)
-
-
-
-
-
-
-