Calculate the total value for each BY group. The SUM statement totals the values of Salary for each BY group and for the whole report.
sum salary;