---
url: /set-instructions/insert-the-next-element-from-a-hierarchy.md
description: >-
  Adds the element immediately after the current last element in a hierarchy -
  useful for rolling, relative time windows.
---

# Insert The Next Element From A Hierarchy

Adds the element that comes immediately after the current last element in the working list, based on its position in the hierarchy - "the next month," relative to wherever the set currently ends, rather than a specific hardcoded period.

#### Example

```
1. Element: 2026 - Jan
2. Insert The Next Element From A Hierarchy
```

Produces `2026 - Jan`, `2026 - Feb`. Chaining the instruction again would add `2026 - Mar` after that, and so on - a rolling window that keeps working unchanged as time moves forward, without editing the set every period. See [Insert The Previous Element From A Hierarchy](/set-instructions/insert-the-previous-element-from-a-hierarchy) for the mirror instruction.

![Element: 2026 - Jan, then Insert The Next Element From A Hierarchy adds 2026 - Feb](/set-instructions-example-insert-next-element.svg)
