New Upload weather data from web services into TM1/Planning Analytics — Read the post →

Building Hierarchies Manually

Let’s start by building manually a new hierarchy, we want to create a new hierarchy called Type which groups Bikes, Components and Clothing under a new consolidation High Value and then Accessories, Safety and Nutrition under Low Value.

First, expand the Dimensions from the menu, expand the Department and finally click on the Edit button:

image-20251017-123009.png

By clicking on the dimension (Edit Dimension ) in the left-hand side menu, it is going to open the hierarchy editor. The dimension has currently only one hierarchy (the default hierarchy which has the same name as the dimension name):

image-20251017-123052.png

To create a new hierarchy manually, you can either click “New Hierarchy”  to start from a blank hierarchy or like in our case we want to create a new hierarchy including all the elements so we need to select the “Department” hierarchy and then click on, “Hierarchy Save As” :

image-20251017-123124.png

The name of the new hierarchy is Type and then click Save As button:

image-20251017-123141.png

Now in the hierarchy list, we can choose between Default, Leaves and our new hierarchy, Type:

image-20251017-123203.png

The Leaves hierarchy is created automatically by TM1 when the first hierarchy is created. It is a default hierarchy which contains all leaf elements:

image-20251017-123219.png

Let’s go back to the Type hierarchy, we want to add two new consolidations to the top consolidation “1”, right click the top consolidation and then click the “+  Add” button to add our new consolidations:

image-20251017-123255.png

Enter ‘High Value’ as the name for the new consolidation, set the type to ‘Consolidated’ and select ‘Child of Element (Start)’ to add as a first child of the consolidation:

image-20251017-123316.png

Click Add button and then Add the Low Value Consolidation, click the Add & Close button to close the pop-up window:

image-20251017-123337.png

Changes are immediately applied to TM1. If you look at the Type Hierarchy, you will see the two new elements:

image-20251017-123356.png

We want to move the elements 3,4 and 6 as child of High Value. To do that, first select the three elements as below and then click on the cut button:

image-20251017-123416.png

Once the cut button selected, you will be able to see the paste button, just click the paste button for the element High Value as below:

image-20251017-123436.png

We want to add the elements as child so select Child of Element (Start) and then press Paste:

image-20251017-123453.png

If the High Value was a leaf element you will the warning message below saying that the element will become a consolidation, just click OK:

image-20251017-123508.png

You should be able to see now:

image-20251017-123526.png

Let’s replicate these steps to move elements 0,2,5 and 7 as child of Low Value:

image-20251017-123542.png

In this hierarchy we do not need the 0 element, click the delete button and you will then have to click the Confirm button to delete it:

image-20251017-123608.png

Click Element to delete the element from the Hierarchy:

image-20251017-123625.png

Note: The delete Component button would remove the element only from the consolidation. We don’t need the Original Value element, just delete it as well.

You can then use drag and drop to reorder the child, for example click on the element 2 row number and drag it before the element 7. Replicate these steps to order all elements as below, the Type hierarchy should look like this:

image-20251017-123645.png

It is important to be aware that deleting a leaf element from a hierarchy is not going to delete it from the default hierarchy (Department and Leaves), you can see now that these two elements have been removed from the Type hierarchy but they are still available in the Department and Leaves Hierarchy:

image-20251017-123705.png