Skip to main content
Cube.create_parameter_hierarchy_from_members(
    name: str,
    members: Sequence[Constant],
    *,
    data_type: DataType | None = None,
    index_measure_name: str | None = None,
) → None
Create a single-level hierarchy with the given members. It can be used as a parameter hierarchy in advanced analyzes.

Parameters

name

The name of hierarchy and its single level.

members

The members of the hierarchy.

data_type

The type with which the members will be stored. Automatically inferred by default.

index_measure_name

The name of the indexing measure to create for this hierarchy, if any.