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

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes! Register now.

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
September Power BI Update Carousel

Power BI Monthly Update - September 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors
Top Kudoed Authors