Exercise: Add field GrossLineTotal with Custom Transformation
Fields transformations let you modify existing data in a number of ways. For example, you can easily reverse the sign of numeric values, trim fields or return a specified number of characters from the original field value. For more detailed information, please see Data Transformations (in the Selecting, Validating, and Transforming Data article).
Steps:
- Right click SalesOrderDetail table and select Add Field.
- Name the field GrossLineTotal, Data type = Numeric, Numeric Scale = 6 (6 Decimals), click OK button.
- Right click the field and select Field Transformation.
- Leave Custom value in the Operator drop-down list and click Add button
- Drag field OrderQty from the Data Field list and drop it into the Transformation Custom SQL box.
- Type the operator * .
- Drag field UnitPrice into the Transformation Custom SQL box and click OK button.
Note: Video is free of audio