Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: DOC-74 more updates

...

  1. In the repository browser, expand the list of Datasources.
  2. Drag the datasource called Rating and Billing into your model.
  3. In your model, hover your mouse pointer over Rating and Billing and click 
    Insert excerpt
    _show_tables
    _show_tables
    nopaneltrue
    . PhixFlow displays a list of the tables available in this database. You can resize the list to make it easier to browse.
  4. Right-click on SOURCE_PACKAGE_CHANNELS and select 
    Insert excerpt
    _create_collector
    _create_collector
    nopaneltrue
    . PhixFlow adds a new database collector  to the model, and gives it the same name as the source data table, SOURCE_PACKAGE_CHANNELS. In the settings → Basic Settings section → Statement Expression, you can see the database query is: 
      select * from SOURCE_PACKAGE_CHANNELS.
  5. Hover your mouse pointer over the new database collector, and click 
    Insert excerpt
    _add_stream_with_attributes
    _add_stream_with_attributes
    nopaneltrue
    Check icon??. PhixFlow adds a new stream to your model and also gives it the name SOURCE_PACKAGE_CHANNELS. In the settings → Attributes section, you can see that data has two attributes (columns): Package and Channel.
  6. To load the data into the stream, run analysis on this section of the model and check the data has loaded.

    Expand
    titleHow?
    1. Hover your mouse pointer over the SOURCE_PACKAGE_CHANNELS stream , click 
      Insert excerpt
      _run_analysis
      _run_analysis
      nopaneltrue
       then click YES to confirm.
    2. When PhixFlow notifies you that the analysis is finished, hover your mouse pointer over the stream again.
    3. Click 
      Insert excerpt
      _show_stream_views
      _show_stream_views
      nopaneltrue
      .
    4. In the drop-down list, select 
      Insert excerpt
      _default_view
      _default_view
      nopaneltrue
      .  PhixFlow displays the data.

    Snapshot of your model and the data you have loaded:

...

  1. Hover your mouse pointer over the Latest Package Update stream and click 
    Insert excerpt
    _add_stream
    _add_stream
    nopaneltrue
     (check icon)??.
  2. In Basic Settings, set the Name to Latest Package All Channels.
  3. Drag all the attributes from Latest Package Update to the settings for Latest Package All Channels.

    Expand
    titleHow?
    1. Hover your mouse pointer over the stream Latest Package Update.
    2. In the context toolbar, click 
      Insert excerpt
      _stream_attributes
      _stream_attributes
      nopaneltrue
      . Phixflow lists the data attributes (column titles) for this stream.
    3. Select all the attributes and drag them into the Latest Package All Channels settings → Attributes section.


  4. Click 
    Insert excerpt
    _finish
    _finish
    nopaneltrue
     to save the change your changes and close the stream settings and close .
  5. Close the attributes list.Add

Look up 

supplement the Latest Package All Channels stream with additional data from the database, using a lookup pipe

...

.

  1. In the model, add a pipe from SOURCE_PACKAGE_CHANNELS into  to Latest Package All Channels
  2. Call the pipe chan
  3. Go to the . PhixFlow opens the settings for the new pipe.
  4. In  Basic Settings section, set:
    • Name: chan
    • Type: Look-up
  5. In the Order/Index section, click Update the
  6. Press Image Removed - Show Stream Attributes
  7. Drag PACKAGE from the left hand (input) list
  8. Drag Package from the right hand (output) list over the top of the Order/Index attribute PACKAGE
  9. Double click on the Order/Index attribute PACKAGE to edit its details:
  10. Insert excerpt
    _stream_attributes
    _stream_attributes
    nopaneltrue
    . PhixFlow opens the list of attributes available from the input stream, in this case PACKAGE and CHANNEL.
  11. Drag PACKAGE into the Order/Index section, then double-click the the new line created. PhixFlow opens the settings for the attribute. Set:
    •  Basic Settings → Index Expression from _out.Package to: in.Package
    Save your changes
    • .
      Technical issue: I'm not seeing _out.Package here.
    • Click 
      Insert excerpt
      _finish
      _finish
      nopaneltrue
       to save and close the attribute settings.
  12. Close the attribute list.
  13. In the pipe settings, click 
    Insert excerpt
    _finish
    _finish
    nopaneltrue
     to save your changes and close the settings.


This means that the lookup will match records in the reference data (SOURCE_PACKAGE_CHANNELS) where PACKAGE = Package from the input pipe in
We must do this, rather than using the value of Package from the output because we are using the lookup to drive an output multiplier – and output multipliers are calculated before the output is generated

...