Scenario: How to load every nth row from a Flat file/ relational DB to the target? Suppose n=3, then in above condition the row numbered 3,6,9,12,....so on, This example takes every 3 row to target table.
- Connect an expression transformation after source qualifier.
Add the next value port of sequence generator to expression transformation.
- In expression create a new port (validate) and write the expression like in the picture below.
- Connect a filter transformation to expression and write the condition in property like in the picture below.
- Finally connect to target.