Adding Summary Name and Value Items
Use the $SUMVAL(n, B) variable, where n defines the report position of the summary column and B defines at which dimension breaklevel ProDiver totals the summary values. The following example illustrates how ProDiver calculates a total using the $SUMVAL( ) variable in a MultiTab report.
The above example shows that ProDiver, using the $SUMVAL(3,2) variable, would calculate and insert the subtotal value of 1241.23, that is the sum of cost values at the salesperson breaklevel for Paul Agate.
To derive a total value, enter a breaklevel of 0 in the $SUMVAL( ) variable. To calculate a total value for the Cost summary column, for example, you would enter $SUMVAL(3,0).
Complete the following steps to insert the summary column name of Cost and a calculated subtotal and total value for the Cost column in a MultiTab report.
-
Open the inserting_more_metadata marker created in the Adding Dimension Name and Value Items topic. Alternatively, the steps in this task are applicable to any MultiTab report.
-
Unlock the report and delete the Dimension Name and Value items or move them to the left side of the report.
-
Click the Add Item icon and perform the following actions:
- Click the $SUMNAME( ) variable and type Summary Column: before the variable and 3 between the parentheses.
- In the Position tab, select Page Right.
-
Click OK to
view the report. -
Click Add Item and perform the following actions:
- Click the $SUMVAL( ) variable and type Cost subtotal for Agate: before the variable name and 3, 2 between the parentheses.
- In the Position tab, select Page Right and type 15 in the Vertical offset field.
-
Click OK to
view the report. -
To add a total value for the Cost column, click Add Item and perform the following actions:
- Click the $SUMVAL( ) variable and type Cost total: before the variable name and 3, 0 between the parentheses.
- In the Position tab, select Page Right and type 30 in the Vertical offset field.
-
Click OK to
view the report.