# Hierarchy and Additional Columns

<figure><img src="https://382510089-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FIuuIZWiXEx25eV75hmmJ%2Fuploads%2F9k9Zinhlx2vk8PqVVrIL%2Fimage.png?alt=media&#x26;token=6d22731f-baf4-4daf-9c9d-5e92b2aa1e1d" 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="https://382510089-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FIuuIZWiXEx25eV75hmmJ%2Fuploads%2F6MZvkSwvRQxcp5ukwkE0%2Fimage.png?alt=media&#x26;token=3b870c23-e424-4b14-a8e5-cf864bf3a12a" 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="https://382510089-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FIuuIZWiXEx25eV75hmmJ%2Fuploads%2FZaUwTskIV84QQgIk5k5p%2Fimage.png?alt=media&#x26;token=161a61b7-f6ce-4f8e-8221-9d69ed8679c8" 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](https://docs.xviz.com/project-management/parent-level-calculations)
{% endhint %}
