# Add a new hierarchy to a dimension

Add new hierarchies to a dimension when you need to organize data in the dimension more granularly.&#x20;

Complete the following steps to add a new hierarchy to a dimension.&#x20;

1. Log into the **Pentaho User Console** (PUC). &#x20;
2. Open the Semantic Model Editor by taking one of the following actions:

   * If you are using the Modern Design of PUC, in the menu on the left side of the page, click **Semantic Model Editor**.
   * If you are using the Classic Design of PUC, click **File** > **Semantic Model Editor**.&#x20;

   The **Semantic Model Editor** opens.&#x20;
3. Open the semantic model that contains the cube with a dimension you want to edit by completing the following sub steps:&#x20;
   1. In the **Semantic Models** list, navigate to the model you want to open by searching or scrolling through the list.&#x20;
   2. Click **Open**. The model opens in the canvas.&#x20;
4. On the canvas, locate the cube, dimension node, and dimension you want to add the new hierarchy to.&#x20;

   <div data-gb-custom-block data-tag="hint" data-style="info" class="hint hint-info"><p><strong>Note:</strong> To locate an element in a large semantic model, you can click the <strong>Model Structure</strong> tab and then navigate to the element by searching or scrolling through the list. </p></div>
5. Click any of the **More Actions** icon available in the respective Dimension structure and select **Edit**. The **Dimension Editor** window opens for that dimension.&#x20;
6. If not yet selected, select the Dimension in the tree. Click **Add New Hierarchy**. A new hierarchy is added to the dimension with the name “Hierarchy” and a number representing the order in which the hierarchy was added to the dimension. For example, “Hierarchy2” is the second hierarchy added to the dimension. &#x20;
7. Click **Apply**. Edits to the dimension are applied.&#x20;
8. In the **Semantic Model Editor**, click **Save** to save changes to the model.&#x20;


---

# 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.pentaho.com/pba/semantic-model-editor/editing-a-semantic-model/edit-a-cube/add-a-new-hierarchy-to-a-dimension.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.
