Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 11 Next »

By the end of this chapter you will be able to:

  • Create merge streams
  • Configure groupings on pipes

In this exercise, you will merge the two sets of data you just loaded into PhixFlow: the data from the file, and the data from the database.

  1. In the model toolbar, drag the 
    Error rendering macro 'excerpt-include' : No link could be created for '_stream_merge'.
      onto your model.
  2. In the settings, set Name: Customer All Details.
  3. Click  OK to save and close the settings for the Customer All Details merge stream.
  4. In the model, hover your mouse pointer over the CustomerAddresses stream.
  5. In the pop-up toolbar, select  Connector , then click the end of the arrow onto the stream Customer All Details.
  6. Similarly, add a pipe from the stream SOURCE_CUSTOMER_PHONE_NUMBERS to Customer All Details.
  7. Double-click on the pipe from CustomerAddresses  to Customer All Details to open the pipe settings.
    1. In the Basic Settings section, set:
      • Name: this pipe is automatically named in.
    2. In the Sort/Group section:

      • Click  Show Attributes. PhixFlow displays the list of attributes (columns). Drag CustomerRef from the list into the settings.
      • Close the list of attributes.
  8. Double-click on the connector from CustomerAddresses  to SOURCE_CUSTOMER_PHONE_NUMBERS, this will be called in_2
    1. In the Sort/Group section, press  Show Stream Attributes

    2. From the list that appears, drag CUSTOMER_REF into the list
    3. Close the list of attributes
  9. Now add attributes to the merge stream:
    1. From the hover menu of CustomerAddresses, press  Show Stream Attributes
    2. Drag all attributes from this list over the top of Customer All Details and "drop" (i.e. release your mouse button)
      1. Note that you can select all attributes by selecting the top attribute, pressing Shift and then selecting the bottom attribute
      2. When the dialogue appears, select Use original attribute name
    3. Similarly, drag all attributes from SOURCE_CUSTOMER_PHONE_NUMBERS to Customer All Details
    4. To see the resulting configuration in Customer All Details, double-click on this stream
      1. In the attributes section, you will see the added attributes

Run Analysis on Stream

Run analysis on your new stream:

  • Hover over the stream Customer All Details, and press  Run Analysis

View Stream data

To view the data you just loaded:

  • Hover over the stream and in the hover menu press  Show the list of Stream Views
  • In the drop down list, select Default View

You will see the address data you loaded from the file combined with the phone numbers you loaded from the database. 

  • No labels