Appearance
Creating Hierarchy
About 493 wordsAbout 2 min
2025-03-13
1. What is a Hierarchy?
A hierarchy is a structure used to represent the layered relationship of data, typically applied in time, geography, organizational structure, etc. Here are some examples:
- Time Hierarchy: Year → Quarter → Month → Day
- Geography Hierarchy: Country → State → City
- Product Hierarchy: Category → Subcategory → Product Name
After creating a hierarchy, users can analyze data step by step based on the hierarchy in reports, making it easier to aggregate and drill down into the data.
2. How to Create a Hierarchy?
2.1 Access the Model Editor
Select a model and enter the Model Editor.
2.2 Create Hierarchy
In the model area, select the field to create a hierarchy, such as product_family.
Right-click the field or use the menu to select "Create Hierarchy".
Below the field, a hierarchy product_family_hierarchy is generated, which contains the selected field product_family.
Add other fields to the hierarchy.
- Right-click the product_department field or use the field menu, select Add to Hierarchy → product_family_hierarchy to add the field to the hierarchy.
- Drag and drop the field into the hierarchy.
Add product_category and product_subcategory to the hierarchy structure sequentially.
Save the model to complete the hierarchy creation.
2.3 Adjust the Hierarchy Relationship
In the Hierarchy Management Interface, drag and drop fields to adjust their order according to the logical structure.


3.1 Add Hierarchy to a Visualization Component
In the Analysis Report Editor, select a visualization component that supports hierarchies (e.g., bar chart, line chart).
Drag the created hierarchy into the X-axis or Y-axis.
The Enable Drill Down button will appear in the chart toolbar. Once enabled, you can drill down by hierarchy to view more detailed data.
5. Hierarchy Use Cases
Scenario | Example Hierarchy |
---|---|
Time Analysis | Year → Quarter → Month → Day |
Geography Analysis | Country → State → City |
Product Classification | Category → Subcategory → Product |
Sales Channel Analysis | Region → State → Salesperson |
📌 Related Content