Enrich a Preparation (Merge)

Users can combine preparations using all the columns from multiple preparations or datasets.

Context

The merge method is useful for a variety of purposes. For example, you could enrich the data in a preparation by adding values from other sources over a period of time. Another example could be to merge preparations that can contain the same data from multiple sources to track trends. To merge the columns of different sources together, follow these steps.

Procedure

  1. Navigate to the preparation that you wish to use as the base preparation to merge data with. Typically the base preparation is the one with the most complete records.
  2. Navigate to the Actions tab in the menu on the right-hand side.
  3. Select Enrich Preparation.
  4. Determine whether the dataset or preparation is available in the Sources panel. Datasets have an icon beginning with the letter D and have a solid background color. Preparations have an icon beginning with the letter P and have a transparent background.
    Choice Description

    Preparation is in the Sources list

    Continue to the next step.

    Preparation is not in the Sources list

    If a preparation isn't in the list, then the preparation needs to be created. See Select Data for Preparation.

    Choose a dataset from a connection

    1. Click Add. Any recently selected datasets are shown on the Recent tab. If the dataset you want to use isn't shown, continue to the next step.

    2. Click the Browse tab.

    3. Choose a connection and navigate to your dataset.

    4. Click OK. A preview of the dataset is shown.

    5. (Optional) If you are using a CSV file, you could see that the first row of data actually contains the column names. If you encounter this situation, enable the Use first row as header option. The column names are placed in the header.

    6. Click OK. The dataset is shown in the sources list with an icon beginning with the letter D. A sample is created from the dataset and appears in the sources list.

  5. Drag and drop a source from the sources list to the designated spot on the left or right of the base preparation in the center of the interactive diagram.
    Merge Option Description

    Merge to the LEFT of the base preparation

    The columns of the selected source are placed on the left side of the current preparation or your current join.

    Merge to the RIGHT of the base preparation

    The columns of the selected source are placed on the right side of the current preparation or your current join.

    A dialog box appears to manipulate the join configuration.

  6. Select a Join Type.
    • Inner Join: Includes only matching rows from both sources

    • Left Join: Includes all rows from the left source

    • Right Join: Includes all rows from the right source

  7. (Optional) A valid suggested Join Condition appears by default. To manually add more join conditions and select the join columns to merge, select + Add Join Condition.
  8. (Optional) Select the operator between two columns to change the join condition to a non-equal operator.
  9. (Optional) In the Output Columns list, deselect the columns you do not want to appear in your combined preparation.
  10. (Optional) Rename the output columns by double-clicking the column name that you want changed and entering a new name.
  11. Once you have configured the preparation layouts to your satisfaction, select Apply.
  12. Select Apply Enrichment to create your combined preparation.

    The combined preparation appears. To view the original preparation's source, navigate to the Info tab on the right-hand side and select the additional sources link.