# Hierarchy and Additional Columns

<figure><img src="/files/6KPk6NOgixkY3sFOkKfm" alt=""><figcaption><p><em>Image 1: xViz Gantt Chart with hierarchical structure and additional columns/measures</em></p></figcaption></figure>

### **Building the Hierarchy**

* The xViz Gantt Chart provides a hierarchy view of the projects/tasks/sub-tasks (or any other such hierarchy)
* Such hierarchies can be expanded/collapsed by report end-users as well
* To build the hierarchy, drag the columns in the '**Task Name**' data field in the required order

<figure><img src="/files/HSgmnl4tmHyUXm7RBBp9" alt=""><figcaption><p><em>Image 2: Populate Task Name field</em></p></figcaption></figure>

### Additional Columns

* Other than the hierarchy building columns, additional columns can be added in the data section of the Gantt Chart
* Add categorical columns in the '**Display Categorie**s' data field
* Add numeric columns/measures in the '**Display Measures**' data field

<figure><img src="/files/SWclLYZPc7paq2OgULSo" alt=""><figcaption><p><em>Image 3: Populate Display Categories and Display Measures field</em></p></figcaption></figure>

{% hint style="warning" %}
Display categories field is limited to a maximum of 5 columns
{% endhint %}

{% hint style="info" %}
Values like Measures for Parent bars are internally calculated in the visual using the information of the child bars. Refer the documentation link for understanding the calculations - [Parent Level Calculation](/project-management/parent-level-calculations.md)
{% endhint %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.xviz.com/project-management/hierarchy-and-additional-columns.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
