---
title: "How to: Prevent Data Loss Using the Leaves Hierarchy in IBM Planning Analytics"
description: "Accidentally deleting a [dimension](https://www.aramar.co.uk/knowledge-share/ibm-planning-analytics/fundamentals-what-are-dimensions-in-ibm-planning-analytics/) element in [IBM Planning Analytics](https://www.aramar.co.uk/ibm-planning-analytics/) can cause **serious problems,** including the loss of associated data. In some cases, this may even require restoring from backup. One feature that can help protect against this is the **Leaves…"
url: "https://www.aramar.co.uk/knowledge-share/ibm-planning-analytics/how-to-prevent-data-loss-using-the-leaves-hierarchy-in-ibm-planning-analytics/"
updated: "2026-05-15"
category: IBM Planning Analytics
---

# How to: Prevent Data Loss Using the Leaves Hierarchy in IBM Planning Analytics

Accidentally deleting a [dimension](https://www.aramar.co.uk/knowledge-share/ibm-planning-analytics/fundamentals-what-are-dimensions-in-ibm-planning-analytics/) element in [IBM Planning Analytics](https://www.aramar.co.uk/ibm-planning-analytics/) can cause **serious problems,** including the loss of associated data. In some cases, this may even require restoring from backup.

One feature that can help protect against this is the **Leaves hierarchy**.

The Leaves hierarchy acts as a safeguard by retaining base-level elements, even if they are removed from the main hierarchy.

---

## Creating a Leaves hierarchy

In the example below, the dimension **Data Version** contains a single hierarchy, also called *Data Version*, with four elements.

To create a Leaves hierarchy:

1. Right click on the dimension
2. Select **Create hierarchy**
3. Create a temporary hierarchy (for example, “Test”)

Once the hierarchy is created, IBM Planning Analytics will automatically create a new hierarchy called **Leaves**.

![](https://www.aramar.co.uk/wp-content/uploads/2026/05/Screenshot-2026-05-15-at-12.04.33.png)

The temporary 'Test' hierarchy can then be deleted.

The Leaves hierarchy will remain and contain a copy of the original 'data version' elements.

![](https://www.aramar.co.uk/wp-content/uploads/2026/05/Screenshot-2026-05-15-at-12.05.46.png)

---

## What happens when an element is deleted?

In this example, the element **5Yr Forecast** is deleted from the main hierarchy.

![](https://www.aramar.co.uk/wp-content/uploads/2026/05/Screenshot-2026-05-15-at-12.16.58-1024x415.png)

At first glance, the figures appear to be gone.

![](https://www.aramar.co.uk/wp-content/uploads/2026/05/Screenshot-2026-05-15-at-12.17.52-1024x548.png)

However, the element still exists within the **Leaves hierarchy**, meaning the data has not been permanently lost.

![](https://www.aramar.co.uk/wp-content/uploads/2026/05/Screenshot-2026-05-15-at-12.18.26-e1778844112108-1024x243.png)

By replacing the columns in the view with the **Leaves** hierarchy, the data can still be seen.

This provides a safety net if an element is removed accidentally

---

## Restoring the deleted element

To restore the deleted element:

1. Open the dimension editor
2. Copy the element from the **Leaves** hierarchy
3. Paste it back into the main hierarchy

Once restored, the data will reappear in the original view.

---

## Final thought

The Leaves hierarchy is a simple but **valuable feature** that can help protect your Planning Analytics model from accidental data loss.

If your users regularly maintain dimensions or hierarchies, enabling this feature can provide an extra layer of reassurance and reduce the risk of recovery from backup.

If you’d like help improving the structure, security, or maintainability of your Planning Analytics model, [talk to us,](http://www.aramar.co.uk/contact/) we’re always happy to help.
