How to work with time-dependent hierarchies
Validity periods, the reference date, and adding, editing and deleting hierarchies in a directory, with one hierarchy per fiscal year.
You will learn
- How validity periods work on the tables of a hierarchy.
- How the reference date decides what the tree shows.
- How to keep one hierarchy per fiscal year side by side.
- How to move a node to a new parent from a given date.
This article is for controllers and data stewards who maintain hierarchies that change over time, such as an organization that is restructured at the start of a fiscal year.
Prerequisites
- A hierarchy view created with validity on the tables that need it. Validity is chosen when the hierarchy is created. See How to create a hierarchy with a directory or How to create a parent-child hierarchy in NextTables.
- Add data, Edit data and Delete all for the steps that change the directory.
How validity works
- A table with validity has Valid from and Valid to. Both dates belong to the period. An empty Valid to means the period has no end.
- Valid from is part of the key, so the same node can have several rows, one per period.
- Periods of rows with the same key must not overlap. Otherwise the row is refused with "This period overlaps another period with the same key."
- Valid to can't be earlier than Valid from.
- Validity is chosen per table. A directory can have validity on its hierarchies, on the structure, on the texts, or any combination. Validity on the directory table is like a time-dependent entire hierarchy in SAP BW, validity on the structure table like a time-dependent hierarchy structure, and validity on the text nodes table makes the texts time-dependent.
💡 Tip: If SAP Datasphere, SAP Analytics Cloud or another tool filters by key date, keep Valid to required and use December 31, 9999 for an open end, as new nodes do.
Step-by-Step Instructions
1) Look at the hierarchy on a date
- Set the Reference date in the toolbar. It starts at today.
- The tree shows the rows valid on that date. NextTables refuses overlapping periods; if rows loaded from outside NextTables overlap, the tree shows the row with the latest Valid from, and other tools may decide differently, so remove the overlap.
- In a directory, the Hierarchy switch groups the hierarchies into "Valid on" the date and "Not valid on this date", each with its key, row count and period.

2) See every hierarchy of a directory
- Clear the Reference date field. The switch lists every hierarchy, and nothing is selected.
- Pick a hierarchy. If it is valid on the reference date (today, when the field was cleared), the date stays; otherwise the date moves to the start of the hierarchy's period.
3) Add a hierarchy for a new period
- Add the new version to the directory as its own hierarchy, for example Hierarchy ID PC-2027 with the name Profit centers 2027, valid from January 1, 2027. The steps are in How to create a hierarchy with a directory, step 5.
- Add the nodes of the new hierarchy. See How to maintain a hierarchy in NextTables.
💡 Tip: Keep one hierarchy per fiscal year with its own Hierarchy ID, such as PC-2026 and PC-2027. Each version stays complete, and reports can pick the version by its Hierarchy ID or by the date. Editing and deleting hierarchies is described in the same step 5 of the directory article.
4) Move a node from a given date
When the structure table has validity, a node moves to a new parent by period:
- Set the Reference date to a date in the current period and open the node with Edit node.
- Set Valid to to the last day under the old parent, for example December 31, 2026, and save.
- Copy the node with Copy node. The copy keeps the key and the validity of the original. Choose the new Parent, set Valid from to the first day under the new parent, for example January 1, 2027, and set Valid to to the end of the new period, for example December 31, 9999.
- Check both dates with the Reference date.
An edit or a drag and drop changes a row for its whole period. It does not split the period at the reference date.
Troubleshooting / FAQs
1. "Looks like no hierarchy is valid on this date."
No hierarchy of the directory covers the reference date. Select a different date, or clear the filters to go back to today.
2. "This period overlaps another period with the same key."
Another row of the same node, hierarchy or text already covers part of the period. Shorten the other row's Valid to first, then save this one.
3. A node shows "has no parent" for a period.
The parent is not valid for the whole period of the node. The warning lets you save, so you can fix the parent next. Until then, the node is hidden on the dates it has no parent.
4. New nodes are valid from 1000 to 9999.
A node added without your own dates is valid as long as its hierarchy, so it appears on every reference date. Narrow Valid from and Valid to when the node belongs to one period.


