Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
8 months ago
Solved

Hierarchy and Show Different Levels

Reaching out for help. I have created the Hierarchy for three levels locations. Right now, I want to the locations (whether which level drill I selected) to show the value in column ‘name' as the s...
  • Anonymous's avatar
    Anonymous
    8 months ago

    Hi Anonymous ,
    Thanks for reaching out to Community Forum.

    I was able to reproduce this using a simple sample model (attached .pbix). The issue is not related to Power Query but to how Power BI evaluates hierarchy context in visuals. Instead of duplicating or hard coding values in Power Query, this can be handled dynamically using DAX. I created a standard hierarchy Level1Name -> Level2Name -> Level3Name and used an ISINSCOPE based measure to detect the active drill level and return the appropriate name automatically. With this approach, Level 1 shows the Level1 name, Level 2 shows the Level2 name, and Level 3 shows the Level3 name, while fully preserving drill down behavior.


    The below attached .pbix demonstrates the correct output at each drill level.

    Thank you.