Working with column filter transformations
You use column filter transformations to add calculated columns and filters to the source query without modifying the source query itself. You can also choose to exclude columns from the result query.
About this task
The following table shows a query with calculated column which returns row numbers:
Deptname | Deptnumb | Division | Location | Manager | Row |
---|---|---|---|---|---|
HEAD OFFICE | 10 | CORPORATE | NEW YORK | 160 | 0 |
NEW ENGLAND | 15 | EASTER | BOSTON | 50 | 1 |
MID ATLANTIC | 20 | EASTER | WASHINGTON | 10 | 2 |
SOUTH ATLANTIC | 38 | EASTER | ATLANTA | 30 | 3 |
GREAT LAKE | 43 | MIDWEST | CHICAGO | 100 | 4 |
PLAINS | 51 | MIDWEST | DALLAS | 140 | 5 |
If you apply a filter to this query, some rows will be dropped from the result set. But the calculated column will return the same row numbers as in the source query, as shown in the following table:
Deptname | Deptnumb | Division | Location | Manager | Row |
---|---|---|---|---|---|
HEAD OFFICE | 10 | CORPORATE | NEW YORK | 160 | 0 |
GREAT LAKE | 43 | MIDWEST | CHICAGO | 100 | 4 |
PLAINS | 51 | MIDWEST | DALLAS | 140 | 5 |
You can use column filter query to add another calculated column that will show row numbers of the result query, as shown in the following table:
Deptname | Deptnumb | Division | Location | Manager | Row | Row2 |
---|---|---|---|---|---|---|
HEAD OFFICE | 10 | CORPORATE | NEW YORK | 160 | 0 | 0 |
GREAT LAKE | 43 | MIDWEST | CHICAGO | 100 | 4 | 1 |
PLAINS | 51 | MIDWEST | DALLAS | 140 | 5 | 2 |
To configure a column filter transformation: