Forum Discussion
Get drill down hierarchy level from Axis on column chart with DAX?
- 9 years ago
Makes sense. Thank you very much for your help Qiuyun Yu.
That's pretty slick...thank you!
I can see it working when I choose to "Go to next level in the hiearchy", but not if I try to "Expand to next level in the hiearchy". Got any magic for that, too?
Hi gconnolljr,
If current level is National, use "Expand to next level in the hierarchy" action will have National and State both be filtered, so the previous measure doesn't work. You can create a measure below:
ExpandNextLevel = IF(ISFILTERED(Table1[National]) && ISFILTERED(Table1[State]) && ISFILTERED(Table1[City]),3,IF(ISFILTERED(Table1[National]) && ISFILTERED(Table1[State]),2,IF(ISFILTERED(Table1[National]),1,BLANK())))
Please note this measure will not work when use "Go to next level in the hierarchy". We can't catch the current level use one measure for both "Go to next level in the hierarchy" and "Expand to next level in the hierarchy".
Best Regards,
Qiuyun Yu
- gconnolljr9 years agoNew Member
Makes sense. Thank you very much for your help Qiuyun Yu.