Forum Discussion

jsuttmann's avatar
jsuttmann
Helper I
4 years ago
Solved

Reference Hierarchy in Measure?

I'm trying to get the value of the item selected in a hierarchy, but I can't reference the heirarchy in a measure.  In this example, I created a hierarchy (123Hierarchy) with three levels.  I'm not s...
  • jsuttmann's avatar
    jsuttmann
    4 years ago

    I was able to resolve this issue by referring to the columns of the hierarchy without referencing the hierarchy name.  Since I only allow a single selection from the hierarchy, I created the measure using a SWITCH statement, starting at the lowest level of the hierarchy.  The same approach works with embedded IF statements as long as the first IF statement is the lowest level of the hierarchy.


    Thank you amitchandak for your input!!