Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
Anonymous
Not applicable

DAX Measure to Detect when Show Next Level is Clicked.

Hi All,
I have a bar chart with a 2 level hierarchy on the X Axis. The visual title changes dynamically based on the which level the X axis is on,using the selected value function (default value is for top level of the hierarchy). This works perfectly when I use the Expand to Next Level Option, but not on the Show Next Level Option.
Any way to achieve this?

Thanks
2 REPLIES 2
v-lionel-msft
Community Support
Community Support

Hi @Anonymous ,

 

Can you show me the measure formula you created for the title?

v-lionel-msft_0-1595385448747.png

 

Best regards,
Lionel Chen

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

 

amitchandak
Super User
Super User

@Anonymous , Can share formula and explain with an example. Are you using isinscope or isfiltered

refer these two

https://www.kasperonbi.com/use-isinscope-to-get-the-right-hierarchy-level-in-dax/

https://powerpivotpro.com/2013/03/hasonevalue-vs-isfiltered-vs-hasonefilter/

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.

Top Solution Authors