Create or open a report that contains the data you want to group and sort hierarchically.
On the Insert menu, click Group.
In the Insert Group dialog box, select the field that you want to use as the basis of your hierarchy (the child field).
For example, if you want to see the hierarchical structure of a company's employees, select the employee field.
Select in ascending order.
By default, the group header of the report displays the value of the field you are grouping on.
If you want to show a different value in the group header, click the Options tab and select the Customize Group Name Field check box.
For example, if you grouped by the employee field, at each change of a group you will see the corresponding employee name. If you want to display a different value (employee ID instead of employee name), customize the group name field by choosing an alternate data field, or by creating a formula.
Click OK.
The group you created is added to the report.
On the Report menu, click Hierarchical Grouping Options.
In the Available Groups list of the Hierarchical Options dialog box, select the group you want to organize hierarchically.
Select the Sort Data Hierarchically check box.
In the Parent ID Field list, select the field by which you want the Instance ID Field organized.
For example, for an employee hierarchical report, you might select the data field listing the supervisor to whom the employee reports.
In the Group Indent field, enter the amount you want to indent for each subgroup.
The value that you enter in the Group Indent field affects all other objects that are in the same area as your hierarchical group. For example, if your report contains a salary field on the same line as the name of the employee, the salary field is also indented when you use the employee field to create a hierarchical group. To indent only the hierarchy records and not the other objects, leave this value as 0 (zero) and use the conditional-X-position feature.
Click OK.
The report data is now grouped hierarchically.
The report is now grouped by employee name and further sorted to show the supervisor hierarchy. You can see that Mina, whose employee data had no supervisor data associate with it, has been sorted at the top of the list. Under Mina's name is each supervisor who reports to her; and under each of those supervisors is a list of employees who reports to him or her.
If you want to, you can now calculate summary fields across your new hierarchical grouping. When inserting a subtotal, grand total, or summary in the usual manner, select the "Summarize across hierarchy" option. For more information, see Summarizing grouped data and Subtotaling.