Creating Hierarchy Variables and Hierarchy Node Variables

Objective

After completing this lesson, you will be able to create a query with hierarchy variables and hierarchy node variables.

Hierarchy Variables and Hierarchy Node Variables

There are two types of variable that relate hierarchies: hierarchy variables and hierarchy node variables.

Often, there are multiple hierarchies that could be used in a query. Hierarchy variables are used to provide a way for a user to choose a hierarchy when they execute a query. This is an more flexible alternative than fixing the hierarchy in the query.

Hierarchy node variables represent nodes within a hierarchy. As an alternative to fixing hierarchy nodes in the query, use hierarchy node variables to dynamically restrict a characteristic. With a hierarchy node variable, you can apply filters by hierarchy node in a query result.

There are two possible combinations of hierarchies and nodes:

  • Hierarchy Node Variable with a Fixed Hierarchy

  • Hierarchy Node Variable with a Hierarchy Variable

Screenshot of a software interface displaying hierarchy node variable and fixed hierarchy settings. The Filter: Fixed Values section shows a hierarchy node variable linked to a product ID. Below, the Edit Filter panel highlights details about variables and filter definitions. The referenced hierarchy is labeled P_PRID_HIER_01, Dec 31, 9999.
Screenshot showing settings for a hierarchy node variable labeled U00_VAR_NODE_001 and a hierarchy variable labeled U00_VAR_HIER_001. The top section displays fixed values and properties for the hierarchy, with options for activation and maintenance. The bottom section shows the filter definition, processing type as manual input/default, and a referenced hierarchy set to a specific date, Dec 31, 9999. Red highlights emphasize key variable names and configurations.

Hierarchy Variables and Hierarchy Node Variables

In the following video, you explore a scenario with Hierarchy Variables and Hierarchy Node Variables.