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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

Reply
matthiashh
Regular Visitor

Dynamically display selected hierarchy level in chart title

When you create a bar chart with a hierarchy assigned to the x-axis, the automatically generated chart title reflects the hierarchy level selected by the user. 
I have not been able to create this functionality with a custom chart title.

The only DAX measure that could provide this information seems to me to be INSCOPE().

But that only works for the chart elements themselves. 

 

It seems that there is no hierarchy context for the chart title. This is true in a way and I understand the logic behind it.

But still, the automatic title reacts to the chosen hierarchy. 

 

Why is this not carried over to the context of the diagram title to enable custom titles that reac to the chosen hierarchy level?

Is there another idea or measure that does the trick?

 

3 REPLIES 3
amitchandak
Super User
Super User

@matthiashh ,
Can you share sample data and sample output in table format? Or a sample pbix after removing sensitive data.

 

 

refer this

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

Join us as experts from around the world come together to shape the future of data and AI!
At the Microsoft Analytics Community Conference, global leaders and influential voices are stepping up to share their knowledge and help you master the latest in Microsoft Fabric, Copilot, and Purview.
️ November 12th-14th, 2024
 Online Event
Register Here

Hi. I'd like to provide an example. But cannot figure out how to upload it here ... 

Hi @matthiashh ,

You could share your file on a  public link,remember to remove confidential data.

 

 

Best Regards

Lucien

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.