How to access two levels with the same name in different hierarchies? #667
Answered
by
bloussou
chris-horril
asked this question in
Q&A
-
Beta Was this translation helpful? Give feedback.
Answered by
bloussou
Aug 10, 2022
Replies: 1 comment
-
Hello, l = cube.levels
- l["Country"] # Will throw since two levels have the same name
+ l["Geography", "Country"] # From Geography hierarchy
+ l["Country", "Country"] # From Country hierarchy |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
Skyscimitar
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hello,
When you have multiple levels with the same name in different hierarchies you need to provide a tuple
(<HIERARCHY_NAME>, <LEVEL_NAME>)
instead of just using the level name.If I have two levels
Country
, one on hierarchyCountry
the other one on hierarchyGeography
I have to do: