The Filter transformation filters rows from a source. If you connect a Filter transformation to a Source Qualifier transformation, you can filter rows passed through the Source Qualifier transformation using any condition you want to apply. In this exercise, you remove discontinued items from the mapping.
The mapping contains a Filter transformation that limits rows queried from the ITEMS table to those items that have not been discontinued.
Create a Filter transformation and name it FIL_CurrentItems.
Drag the following ports from the Source Qualifier transformation into the Filter transformation:
ITEM_ID
ITEM_NAME
PRICE
DISCONTINUED_FLAG
Open the Filter transformation.
Click the
Properties
tab to specify the filter condition.
Click
Open
in the Filter Condition field.
The
Expression Editor
dialog box appears.
Select the word TRUE in the Formula field and press
Delete
.
Click the
Ports
tab.
Enter
DISCONTINUED_FLAG = 0
to remove discontinued items from the mapping.
Click
Validate
, and then click
OK
.
The new filter condition now appears in the Value field.