Creating hierarchies
Predefining hierarchies can provide several key benefits. Some of those benefits are listed here:
- Hierarchies organize attributes and show relationships in the data
- Hierarchies allow for easy drag and drop interactivity
- Hierarchies add significant analytical value to the visualization layer through drilling down and rolling up data, as necessary
Hierarchies store information about relationships in the data, that users may not have otherwise known. I remember when I was working for a client in the telecommunication industry and they had Base Transceiver Stations (BTS) and Sectors, and without looking at my notes, I could never remember the correct order. Did a BTS contain multiple sectors, or did a sector contain multiple base transceiver stations? Once the hierarchy was added to the data model, I no longer had to worry about remembering the relationship because the relationship was stored in the hierarchy. Here is a list of common hierarchies:
- Category | Subcategory | Product
- Country | State | City
- Year | Quarter | Month | Day
Hierarchies may only be created in either the report or data view. In order to create a new hierarchy, complete the following steps:
- Expand the Sales Territory table.
- Right-click on the Sales Territory Country column.
- Select New Hierarchy:
A new hierarchy has been created with a single column, and given a default name of Sales Territory Country Hierarchy:
First, right-click on the Sales Territory Country Hierarchy and rename it to Sales Territory Drilldown. The next step is to add additional columns/attributes to the hierarchy. Complete the following steps:
- Right click on Sales Territory Region.
- Click on Add to Hierarchy.
- Select Sales Territory Drilldown.
- Repeat steps 1-3 for Sales Territory Group:
The completed hierarchy can be seen in the following screenshot. However, the order of the attributes is incorrect; the order should be Sales Territory Group | Sales Territory Country | Sales Territory Region:
To correct the order of the attributes:
- Right-click on Sales Territory Group.
- Click Move Up.
- Repeat steps 1 and 2: