Use tablix field expressions
- Select the cell in the table that you want to add the expression and select the properties icon (
). - Select the square icon (
) next to the Content field and select Expression. - In the Expression dialog, enter the expression in the Set Expression for : Content field.
You can also use the values in the Options and Data sections to create the expression.
- Select OK.
- Select Save Report to save your changes.
Example: Display the currency or number sum at the group footer
-
In the Expression dialog, select Fields from the dropdown and select the appropriate field from the list in the Data section.
The Set Expression For : Content field is then populated with the expression. For example, =Sum(Fields!POSubtotal.Value).
-
Select OK.
Example: Use the First and Sum functions together
In the Fixed Lump Sum - Prime Contract Item Invoice History report, the following expression is used in the Set Expression For : Content field:
=First (Fields!ItemSubtotal.Value) - Sum(Fields!PrimeInvItemCurrentTotal.Value)
The First function is used because the prime contract or change order (CO ) item might appear in multiple transactions. Using the Sum function will incorrectly add up the same value multiple times.