Instead of using the Group presentation style to create a grouped DataWindow object from scratch, you can take an existing tabular DataWindow object and define groups in it.
The following procedure is an overview of how you group data in an existing tabular DataWindow object. Steps 2 through 6 are described in more detail in separate procedures.
To add grouping to an existing DataWindow object:
Start with a tabular DataWindow object that retrieves all the columns you need.
(Optional) Rearrange the DataWindow object.
(Optional) Add summary statistics.
(Optional) Sort the groups.