Splitting column by delimiter
One of the most common transformation steps is Split column by delimiter. In many cases, we may need to split a column by a delimiter, such as when we have people's full names in our data. However, the business needs to have separate First Name
, Middle Name
, and Last Name
columns. Let's look at an example. In the previous section, we converted the OrderDateTime
column's type into Date
. But what if the business requires us to analyze the Internet Sales
data at both the Time
and Date
levels? We can do many things to satisfy this new requirement, such as the following:
- Create a new
Time
table, which can be done either using DAX (we discussed this in Chapter 2, Data Analysis eXpressions and Data Modeling, in the under Creating a Time dimension with DAX section) or within the Power Query Editor. - Split the
OrderDateTime
column into two columns – oneDate
column and oneTime
column. - Create a relationship between the
Time
...