...
- In the repository browser, expand the list of Datasources.
- Drag the datasource called
Rating and Billing
into your model. - In your model, hover your mouse pointer over
Rating and Billing
and click Insert excerpt |
---|
| _show_tables |
---|
| _show_tables |
---|
nopanel | true |
---|
|
. PhixFlow displays a list of the tables available in this database. You can resize the list to make it easier to browse. - Right-click on
SOURCE_PACKAGE_CHANNELS
and select Insert excerpt |
---|
| _create_collector |
---|
| _create_collector |
---|
nopanel | true |
---|
|
. 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
. - Hover your mouse pointer over the new database collector, and click
Insert excerpt |
---|
| _add_stream_with_attributes |
---|
| _add_stream_with_attributes |
---|
nopanel | true |
---|
|
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. To load the data into the stream, run analysis on this section of the model and check the data has loaded.
Expand |
---|
|
- Hover your mouse pointer over the
SOURCE_PACKAGE_CHANNELS stream , click Insert excerpt |
---|
| _run_analysis |
---|
| _run_analysis |
---|
nopanel | true |
---|
| then click YES to confirm. - When PhixFlow notifies you that the analysis is finished, hover your mouse pointer over the stream again.
- Click
Insert excerpt |
---|
| _show_stream_views |
---|
| _show_stream_views |
---|
nopanel | true |
---|
| . - In the drop-down list, select
Insert excerpt |
---|
| _default_view |
---|
| _default_view |
---|
nopanel | true |
---|
| . PhixFlow displays the data.
|
Snapshot of your model and the data you have loaded:
...
- Hover your mouse pointer over the
Latest Package Update
stream and click Insert excerpt |
---|
| _add_stream |
---|
| _add_stream |
---|
nopanel | true |
---|
|
(check icon)??. - In Basic Settings, set the Name to
Latest Package All Channels
. Drag all the attributes from Latest Package Update
to the settings for Latest Package All Channels
.
Expand |
---|
|
- Hover your mouse pointer over the stream
Latest Package Update . - In the context toolbar, click
Insert excerpt |
---|
| _stream_attributes |
---|
| _stream_attributes |
---|
nopanel | true |
---|
| . Phixflow lists the data attributes (column titles) for this stream. - Select all the attributes and drag them into the
Latest Package All Channels settings → Attributes section.
|
- Click
Insert excerpt |
---|
| _finish |
---|
| _finish |
---|
nopanel | true |
---|
|
to save the change your changes and close the stream settings and close . - Close the attributes list.Add
Look up
supplement the Latest Package All Channels stream with additional data from the database, using a lookup pipe
...
.
- In the model, add a pipe from
SOURCE_PACKAGE_CHANNELS
into to Latest Package All Channels
- Call the pipe
chan
- Go to the . PhixFlow opens the settings for the new pipe.
- In Basic Settings section, set:
- In the Order/Index section, click Update the
- Press Image Removed - Show Stream Attributes
- Drag
PACKAGE
from the left hand (input) list - Drag
Package
from the right hand (output) list over the top of the Order/Index attribute PACKAGE
- Double click on the Order/Index attribute
PACKAGE
to edit its details: Insert excerpt |
---|
| _stream_attributes |
---|
| _stream_attributes |
---|
nopanel | true |
---|
|
. PhixFlow opens the list of attributes available from the input stream, in this case PACKAGE
and CHANNEL
.- 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 |
---|
nopanel | true |
---|
|
to save and close the attribute settings.
- Close the attribute list.
- In the pipe settings, click
Insert excerpt |
---|
| _finish |
---|
| _finish |
---|
nopanel | true |
---|
|
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
...