---
schema_version: "1"
id: 3d1be72c0ee073a89ec9f6864e18dfa7e2facbf48d4ef76836d76113d6816256
title: Create Hierarchies
collection: tableau
version: next
locale: en-gb
portal_url: https://docs.salesforce.com/tableau/next/en-gb/pro/desktop/qs_hierarchies.md
canonical_url: https://help.tableau.com/v0.0/pro/desktop/en-gb/qs_hierarchies.htm
source_site: help.tableau.com
content_type: documentation
content_hash: a7b36cf997c49971fc8c1f200c7b85d61c732f20d9a2bdd1f22c34aa11c70713
description: Create hierarchies to quickly drill up and down between field levels in a viz.
---
[Skip to main content](#main-content)

# Create Hierarchies

When you connect to a data source, Tableau automatically separates date fields into hierarchies so you can easily break down the viz. You can also create your own custom hierarchies. For example, if you have a set of fields named Region, State, and County, you can create a hierarchy from these fields so that you can quickly drill down between levels in the viz.

## Create a hierarchy

To create a hierarchy:

1. In the **Data** pane, drag a field and drop it directly on top of another field.  
    
    **Note:** When you want to create a hierarchy from a field inside a folder, right-click (control-click on a Mac) the field and then select **Create Hierarchy**.
2. When prompted, enter a name for the hierarchy and click OK.
3. Drag additional fields into the hierarchy as needed. You can also re-order fields in the hierarchy by dragging them to a new position.
    
    ![Create hierarchies in the data pane.](/tableau/next/en-gb/pro/desktop/en-gb/Img/hierarchies1.gif)
    
    ## Drill up or down in a hierarchy
    
    When you add a field from a hierarchy to the visualisation, you can quickly drill up or down in the hierarchy to add or subtract more levels of detail.
    
    To drill up or down in a hierarchy in Tableau Desktop or in web authoring:
    
    - In the visualisation, click the **+** or **\-** icon on the hierarchy field.
        
        ![Create a hierarchy in the columns shelf.](/tableau/next/en-gb/pro/desktop/en-gb/Img/hierarchy1.gif)
        
        When you are editing or viewing the visualisation on the web, you have the option of clicking the **+** or **\-** icon next to a field label.
        
        ![Create a hierarchy in the viz.](/tableau/next/en-gb/pro/desktop/en-gb/Img/hierarchy2.gif)
    
    ## Remove a hierarchy
    
    To remove a hierarchy:
    
    - In the **Data** pane, right-click (control-click on a Mac) the hierarchy and select Remove Hierarchy.
        
        The fields in the hierarchy are removed from the hierarchy and the hierarchy disappears from the Data pane.