SUM( )
Adds all the values in a set of values.
The expression specifying the values to use in the calculation. The data type must be numeric.
The numeric index of the group whose values to use in the calculation. 0 indicates the table, 1 indicates the first group, 2 indicates the second group, and so on. If you do not supply a value for groupLevel, the function performs the calculation over all the values in the table.
The total value of the specified set of values.
The following example calculates the sum of values in the CostPerUnit data field at the table level.
The following example calculates the sum of values in the TotalCost data field for each group at the first level.
The following example calculates the sum of Price values + Tax values.