Add Totals to a Report

If the Report Footer band is not present in your report, add it. To do this, right-click anywhere over the report's area and in the invoked Context Menu, select Insert Band | ReportFooter.

Click the field for which a summary will be calculated, to select it. Then, hold down CTRL and drag the field onto the Report Footer area, to create an exact copy of the Label that will display the summary.

Now, select the newly created Label, and in the Property Grid, locate the Summary property and click its ellipsis button. The Summary Editor will appear.

The following image shows an example of how you can set up your total. Note that the Summary Running option is set to Report, to ensure that all values from the specified data field are taken into account.

The Ignore NULL values option won't affect the result in this example, since NULL values are treated like zeros, by default. So, Sum won't change whether these values are taken into account or not. This option makes sense for functions like Count or Average, because the number of elements counted will depend on it

To save the settings and close the dialog, click OK.

 

Switch to the Preview Tab, and view the result.

Previous Lesson: Change or Apply Data Grouping to a Report Table of Contents Next Lesson: Create or Modify Watermarks of a Report