...
- Create a new stream in your model and populate its attributes.
- Hover over
CustomerCareUpdates
and click Add a new Stream. - In the properties, set the Name to
Combined Updates
. - In the model, show the stream attributes for
CustomerCareUpdates
. - Select all the attributes and drag them into the properties for the
Combined Updates
stream. Drop them into the Attributes section.
- Hover over
- Save your model layout.
- Connect the
ShopUpdates
stream to theCombined Updates
stream.- Hover over
ShopUpdates
and click Add a new Connector. Click
Combined Updates
to link the pipe to the stream.Info When you connect streams, PhixFlow automatically adds a reference to the input pipe name. this appears in the attribute expression. To merge this data successfully you must update the attribute expressions to remove the
in.
prefix.
- Hover over
- Fix all the attribute expressions.
- Double-click on
Combined Updates
to open its properties. For each attribute: - In the Attributes section, double-click on an attribute to open its properties.
- In the properties for the attribute, in the Basic Settings section, edit the Expression to remove
in.
and press .
- Double-click on
- In the
Combined Updates
stream properties, press to save the changes.Run analysis settings tab, click
to save and close.Insert excerpt _finish _finish nopanel true - Click
onInsert excerpt _run_analysis _run_analysis nopanel true Combined Updates
. - Check that the stream has:
- the columns CustomerRef, Sales Date and Package
- 15 rows
- all cells have data.
The stream default view:
Snapshot of the Chanel Package Check model so far:
Record the source for each update
You will now update your configuration settings to record the source for each update, in the set of combined updates. To do this:
- Update the name of the pipe from the stream
CustomerCareUpdates
.- Double-click on the pipe to open its properties.
- Update the Name to
CC
.Press to save your changes. - Click
to save and close the settings tabInsert excerpt _finish _finish nopanel true
- Update the name of the pipe from
ShopUpdates
toshop
. - Double-click the stream
Combined Updates
to open its properties. - In the Attributes section, add a new attribute and set:
- Name:
Source
. Expression :
Code Block if (_pipeName == "CC", "Customer Care" , "Shop" )
- Name:
- To make
Source
the first attribute in the stream, drag it to the top of the attributes list.Press in the main stream properties - Click
in the main stream settings tab.Insert excerpt _finish _finish nopanel true - Run analysis on
Combined Updates
. - Check the output data set and make sure that the source has been recorded on each record correctly.