Files to look at:
How to group (sort) a report by days of week
This is an example of applying a grouping by a time span to a report at design time.
In particular, it shows how to group data by days of the week, and the same idea works for a grouping by a month. In short, this requires creating a calculated field, which, with the help of built-in date-time functions, returns a zero-based index of the day of the week. Then, a band's grouping criteria is set to this calculated field. Finally, the required data field is represented in the Group Header band, and the required formatting is applied to it.
See also:
- How to group data;
- How to count the number of groups in a report;
- How to implement custom grouping (group by Year and Month);
- How to insert page numbers for groups.