From the course: Power BI Data Methods (2019)
Unlock the full course today
Join today to access over 22,700 courses taught by industry experts or purchase this course individually.
Merging fields
- Merging columns works the opposite way of splitting them. It takes two or more columns and combines them into a single field in a functionality similar to concatenation. We see here, we take a five-digit zip code and combine it with the four-digit delivery code for the zip code into a final zip code. It uses a dash to separate the fields. In order for the merge functionality to work, the merge fields must have the same data type. In our US Census Power BI file, we go to the GEOID to county mapping, the web connection, to show how the merging functionality works. We want to combine the state code and the county code into a single field called GEOID. First we need to make sure that both these data types are set to the same for both the fields. They're currently both numbers. We want to actually use text data types instead to preserve the leading zeroes. We go ahead and select "Text" and replace the current step so…
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)
-
-
-
-
-
-
-