When working with formulas one can use predefined functions listed in the table below:
SubTotal
Total
See also:
Functions Available in Expression Editor