
To add a calculated field in Workbench 5,
-
In Workbench, Click
in the left-hand icon bar.
- In the Jobs listing, double-click the job for which you want to create a calculated column.
- Click Transforms to expand that section of the pane.
- In the Add a transform menu, select Calculated Field Transform.
-
Click the
button.
The Calculated Field Transform Editor appears.
- Enter a name for the new column in the Column Name field.
- Build your calculation in the Calculation field using the column names in the Available columns listing and the functions in the Available functions listing. You can add column names and functions to a calculation by double-clicking them in the list. You can filter the functions by category by selecting the desired category in the Category menu. All functions are accompanied by descriptions; you can see the description for a function by clicking that function. In addition, each function shows its proper usage. For example, the SUM function is represented as SUM (p1, [p2],…). This means that you are summing the values in all referenced columns, which are indicated by p1, p2, and so on.
-
Click
Validate to ensure that your calculation is valid.
Note: In calculations, column names cannot contain non-ASCII characters. You can reference a column in a calculation using Column# where is the 1-based column order. For example: CONCATENATE(Column2,Column3)
- Click Apply when finished.
-
Click
at the top of the pane to save your transform.