In the following steps, you use an Expression transformation to calculate the total salary for each employee. You use BASESALARY, COMMISSION, and BONUS as input columns to the Expression transformation and create a TotalSalary column as output.
Create an Expression transformation and name it EXP_TotalSalary.
Click
Done
.
Drag all the ports from the XML Source Qualifier transformation to the EXP_TotalSalary Expression transformation.
The input/output ports in the XML Source Qualifier transformation are linked to the input/output ports in the Expression transformation.
Open the Expression transformation.
On the
Ports
tab, add an output port named TotalSalary. Use the Decimal datatype with precision of 10 and scale of 2.