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

July 28 - August 9 | Final Round of the Power BI Dataviz World Championships. This is your chance. Learn more

Reply
Anonymous
Not applicable

Dynamic title using hierarchy

Hi everyone, 

 

I want to have a dynamic title, changing when the user is going to the next level or expanding one level in the hierarchy. Unfortunately, it's only changing when you're going to the next level, but is doesn't chang when you're using the button expanding. 

I tried the functions IsFiltered and IsInscope, but both without succes. Is there another function or a workaround for this? 

Hierarchy expanding.png

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @igrandey89 , 

Thank you for your suggestion. I tried your measure, and adjusted a few things. However, it didn't work (Only "Default Title" became visible). 

I created a workaround: 

I placed a button with a bookmark on the expanding one level in the hierarchy-arrow. So when the user clicks on this, it just redirects you to another chart with a manual title. I placed a button and bookmark on this chart too, to be able to go back. 

 

I have been searching for a while, and I noticed that more people had this issue which weren't solved. So I guess using a dynamic title by clicking on the expanding one level in the hierarchy isn't possible (yet)

View solution in original post

5 REPLIES 5
EOW
Advocate II
Advocate II

If anyone is still looking for a solution to this, I've submitted it as an idea on the Ideas forum:
Let a visual title and Axes read displayed hierarc... - Microsoft Fabric Community
Hopefully it gets traction.

igrandey89
Advocate II
Advocate II

Awesome!!! Glad I could (sort of) help 😉

igrandey89
Advocate II
Advocate II

To make the dynamic title change when expanding the hierarchy instead of only when drilling down, you can use the HASONEVALUE function along with SELECTEDVALUE. Here's a modified version of your DAX measure that should work:

Dynamic title2 =
VAR CurrentLevel =
    SWITCH (
        TRUE (),
        HASONEVALUE ( Calendar[DayOfWeekName] ), 1,
        HASONEVALUE ( Calendar[Weeknumber] ), 2,
        0
    )
RETURN
    SWITCH (
        CurrentLevel,
        1, "Number of alarms per day and week",
        2, "Number of alarms per week",
        "Default Title"
    )

In this measure, we first create a variable CurrentLevel to identify the current hierarchy level by checking whether the user has drilled down or expanded on the DayOfWeekName or Weeknumber. Then, we return the title based on the value of CurrentLevel.

This should update the title as you expand the hierarchy. However, depending on your data model and how your visualizations are set up, you might need to adjust this code to fit your specific case.

 

Anonymous
Not applicable

Hi @igrandey89 , 

Thank you for your suggestion. I tried your measure, and adjusted a few things. However, it didn't work (Only "Default Title" became visible). 

I created a workaround: 

I placed a button with a bookmark on the expanding one level in the hierarchy-arrow. So when the user clicks on this, it just redirects you to another chart with a manual title. I placed a button and bookmark on this chart too, to be able to go back. 

 

I have been searching for a while, and I noticed that more people had this issue which weren't solved. So I guess using a dynamic title by clicking on the expanding one level in the hierarchy isn't possible (yet)

If it's not already submitted in the PBI Ideas site--I would suggest you do so! https://ideas.powerbi.com/

Helpful resources

Announcements
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

Fabric Community Sticker Design Challenge Barcelona Carousel

Fabric Community Sticker Challenge - Barcelona 2026

If you love stickers, then you will definitely want to check out our community sticker challenge, Barcelona edition!

July Power BI Update Carousel

Power BI Monthly Update - July 2026

Check out the July 2026 Power BI update to learn about new features.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.