Split Transformation: Break Up Column Values

In CRM Analytic, you can split the strings in a text column into two values by specifying a delimiter. To split column values into more than two parts, add multiple instances of the Split transformation. For instance, you can use 3 Split transformations in a Data Prep recipe to split the full address into the following components: street address, city, state, and zip code.

Required Editions

Split Transformation: Break Up Column Values

User Permissions Needed
To create a recipe: Edit CRM Analytics Dataflows OR Edit Dataset Recipes
  1. In a Transform node of a Data Prep recipe, select the text (dimension) column in the Preview tab.
  2. In the Transform toolbar, click the Split button (Split button).
    The Split panel is where you specify the delimiter and new column labels.
  3. Select the delimiter in the Delimiter field.

    For example, if address components are separated by a comma in the Address field, specify comma as the delimiter.

  4. Specify the column labels for both new columns.
  5. Click Apply to add the transformation to the Transform node.

    Going back to the address example, the Address field is split into two. The Split transformation splits the value at the first occurrence of the delimiter. In this case, the first comma appears after the street address. So the full address is broken into the street address and the rest (city, state, and ZIP code).

    The Preview shows the results.
  6. If needed, add the Split transformation again to further split the column values.

    For example, to finish splitting the city, state, and ZIP code, we can add two more Split transformations.

    Preview shows the results. Notice how city, state, and zip code are in separate columns now.
  7. To view the Graph area, click the Collapse button (Collapse button).
  8. Save the recipe.

If you don’t need the original column you split, add the Drop Columns transformation after the Split transformation to drop it from the recipe. From that point, the original column doesn’t appear in Preview anymore.