Crystal Reports Online Training

Learn Online, Anytime, Anywhere

Step-by-step online tutorials.

3.04 Tutorial 3-1. Creating a Grouping Report

Tutorial 3-1. Creating a grouping report

To practice working with groups, let’s modify the Employee List report created in Chapter 1. That report listed each employee on a separate line. We are going to modify the report so that it first groups by the region and then by the city.

  1. Open the Employee List report you created in Tutorial 1-1.
  2. Select the menu items Report > Group Expert. This opens the Group Expert dialog box.
  3. In the Available Fields list click on the Employee_Addresses.Region field and drag it to the Group By list.
  4. Click on the Employee_Addresses.City field and drag it to the Group By list.
  5. Click the OK button. The dialog box closes and the two groups have been added to the report.
  6. In the report designer, move the report object Group #2 Name a little to the right so that it is offset from Group #1 (the Region).
  7. Click the OK button to save your changes. Your report’s design should look similar to Figure 3-7. The report preview is in Figure 3-8.



Figure 3-7. Employee List with groupings.


Figure 3-8. Employee List preview.

One unusual aspect about this report is that the first few records don’t have any data in the Region field and all you see are the two cities listed (London and Nottingham). It would be nice to classify these records so that they are separate from the records that have data in the Region field. Soon we’ll look at options for customizing the grouping format as well as fixing problems such as this.