Please ensure Javascript is enabled for purposes of website accessibility
Powered by Zoomin Software. For more details please contactZoomin

AVEVA™ Engineering

Count the Number of Records in a Report or Group

  • Last UpdatedMar 15, 2023
  • 3 minute read

Counts the number of records in a report or a group.

  1. Create a new report

  2. Bind the report to a data source.

  3. Right-click anywhere on the report, select Insert Band and ReportFooter from the drop-down menus.

  4. In the same way, add GroupHeader and GroupFooter bands to the report.

  5. On the Field List window, click the Field List tab and select the required field item to be used as the report group header.

  6. Drag and drop the selected field item onto the GroupHeader area of the report. A control is created which displays the name of the field item and the yellow database icon.

  7. On the Field List window, click the Field List tab and select the required field item to be used as the report data.

  8. Drag and drop the selected field item onto the Detail area of the report. A control is created which displays the name of the field item and the yellow database icon.

  9. On the Detail area of the report, select the field item for which a group count is to be calculated. Hold down Ctrl and drag the field item onto the GroupFooter area of the report to create an exact copy.

  10. On the Detail area of the report, select the field item for which a report count is to be calculated. Hold down Ctrl and drag the field item onto the ReportFooter area of the report to create an exact copy.

  11. Click the Smart tag symbol at the top of the GroupHeader band to display the Tasks window.

  12. Click the ellipsis next to Group Fields to display the GroupField Collection Editor window.

  13. Click Add to add a new entry.

  14. Set the Field Name property to the required field.

  15. Set the Sort Order property (ascending or descending).

  16. Click OK to apply the settings and close the Group Field Collection Editor window.

  17. Select the label in the GroupFooter band and on the Properties window, click the Data tab.

  18. Expand the Summary property.

  19. Set the Running property to Group.

  20. Set the Function property to Count.

  21. Select the Ignore Null Values check box.

  22. Select the label in the ReportFooter band and on the Properties window, click the Data tab.

  23. Expand the Summary property.

  24. Set the Running property to Report.

  25. Set the Function property to Count.

  26. Select the Ignore Null Values check box.

  27. Click the Print Preview tab to display the result.

Refer to Create Layout Template / Report Definition and Bind Report to Dabacon Project Data for further information.

Related Links
TitleResults for “How to create a CRG?”Also Available in