#### Defining hierarchies

Hierarchies can be defined in a business/report cube to allow users to drill report data down to particular dimensions in JReport Web.

To define a data hierarchy:

1. In the Business/Report Cube Editor window, click Tools > Hierarchy Management. The Hierarchy Editor dialog will then appear. See the dialog.

2. Click <Add Hierarchy...> in the Hierarchy box to add a hierarchy. Click the Rename button to rename the hierarchy if necessary.
3. Select dimensions that have been added to the business/report cube from the Dimension box and click to add them to the hierarchy. Click to add all the existing categories as hierarchies of the business/report cube. To remove a dimension from a hierarchy, first select it and then click or the Delete button.
4. Adjust the order of the dimensions by clicking the Move Up or Move Down button.
5. If you want to add another hierarchy, click <Add Hierarchy...> and repeat the above steps.

   To adjust the order of the added hierarchies, click the Mover Up or Move Down button.

   To delete a hierarchy, select it in the Hierarchy box and then click the Delete button or . If you want to remove all the hierarchies in the business/report cube, simply click

6. When done, click OK to accept the changes.

Note: When you add dimensions to a hierarchy, make sure that the chosen dimensions have a logical relationship with each other so that the group hierarchy can be set up correctly.