Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Insert excerpt
_Banners
_Banners
nameanalysis
nopaneltrue

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

...

Table of Contents
maxLevel1
excludeRun analysis*

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.

Create a merge table

  1. In the model toolbar, drag the 
    Insert excerpt
    _

...

  1. table_merge
    _

...

  1. table_merge
    nopaneltrue
      onto your model.
  2. In the settings, set Name: Customer All Details.
  3. Click
    Insert excerpt
    _finish
    _finish
    nopaneltrue
     to save and close the settings for the Customer All Details merge

...

  1. table.
  2. In the model, hover your mouse pointer over the 

...

  1. Customer Addresses table.
  2. In the

...

  1. popup toolbar, select 
    Insert excerpt
    _pipe
    _pipe
    nopaneltrue
    , then click the end of the arrow onto the

...

  1. table Customer All Details. This connector will pipe data into the table.
  2. Similarly, add a

...

  1. connector from the

...

  1. table SOURCE_CUSTOMER_PHONE_NUMBERS to Customer All Details.

Configure groupings on the pipes

  1. Double-click on the pipe from

...

  1. Customer Addresses  to Customer All Details to open

...

  1. its settings.
    1. In the Basic Settings section, set:
      • Name: this pipe is automatically named in.
    2. In the Sort/Group section

...

    1. click 

      ...

      Insert excerpt
      _attributes_show
      _attributes_show
      nopaneltrue
      . PhixFlow displays the list of attributes (columns).

    2. Drag CustomerRef from the list into the settings.
    3. Close the list of attributes.
  1. Double-click on the

...

  1. pipe from CustomerAddresses

...

  1.  to SOURCE_CUSTOMER_PHONE_NUMBERS

...

  1. . This pipe will be called in_2.
    1. In the Sort/Group section,

...

    1. click 

      Insert excerpt
      _attributes_show
      _attributes_show
      nopaneltrue
      . PhixFlow displays a list of the attributes (columns) in the Customer Addresses  data.

    2. Drag CUSTOMER_REF into the Sort/Group section.
    3. Close the list of attributes.
  1. Now add attributes from Customer Addresses to the merge

...

  1. table:

    ...

      1. Hover over Customer Addresses and in the popup toolbar, click 
        Insert excerpt
        _attributes_show
        _attributes_show
        nopaneltrue
        .
      2. Drag all attributes from this list

    ...

      1. and drop them onto the table icon for Customer All Details

    ...

    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
      1. .

        Tip
        titleHow to select all the attributes in a list

        To select all attributes, you can:

        • either click the first attribute then Shift+click the last attribute
        • or click the check box next to the Name header. 

        Image Added


      2. PhixFlow asks for confirmation. If it is not already selected, select Use original attribute name. Then click Confirm.
        Image Added
    1. Similarly, drag all attributes from SOURCE_CUSTOMER_PHONE_NUMBERS to Customer All Details.
    2. To see the resulting

    ...

    1. settings for Customer All Details, double-click

    ...

    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 Image Removed Run Analysis

    ...

    1. its icon to open the settings tab and look at the Attributes section. You can see a list of 8 attributes (data columns).

    Run analysis and view the table data

    1. To run analysis on your new table, hover your mouse pointer over the table Customer All Details, and in the popup toolbar, click 
      Insert excerpt
      _run_analysis
      _run_analysis
      nopaneltrue
      .
    2. To view the data you just loaded

    ...

    1. , hover over the

    ...

    1. table and click 
      Insert excerpt
      _view_show
      _view_show
      nopaneltrue
      . In the drop-down list,

    ...

    1.  select
      Insert excerpt
      _view_default
      _view_default
      nopaneltrue
      . You will see the address data you loaded from the file combined with the phone numbers you loaded from the database.