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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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/

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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