Enter conditions in the Expression editor. The filter condition is case sensitive.
You can use any expression that returns a single value as a filter. For example, if you want to filter out rows for employees whose salary is less than or equal to $30,000, enter the following condition:
SALARY > 30000
You can specify multiple components of the condition, using the AND and OR logical operators. If you want to filter out employees who make less than $30,000 and more than $100,000, enter the following condition:
SALARY > 30000 AND SALARY < 100000
You can use ports, parameters, dynamic ports, and generated ports in the filter condition. Select the ports and the parameters in the Expression editor.
If you use a dynamic port in the filter condition, the filter condition expands to include all the generated ports in the dynamic port. For example, the dynamic port, MyDynamicPort, contains three decimal ports:
If you configure the following filter condition:
The filter condition expands to the following expression:
Salary > 100 AND Bonus > 100 AND Stock > 100
You can enter a constant for the filter condition. The numeric equivalent of FALSE is zero (0). Any non zero value is the equivalent of TRUE. For example, the transformation contains a port named NUMBER_OF_UNITS with a numeric data type. You configure a filter condition to return FALSE if the value of NUMBER_OF_UNITS equals zero. Otherwise, the condition returns TRUE.
You cannot use a single port selector or dynamic port as a boolean value.
You do not need to specify TRUE or FALSE as values in the expression. TRUE and FALSE are implicit return values from any condition you set. If the filter condition evaluates to NULL, the row is FALSE.