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

Microsoft is giving away 50,000 FREE Microsoft Certification exam vouchers. Get Fabric certified for FREE! Learn more

Reply
Christianvs
Helper I
Helper I

Dynamic title name doesn't change

Hi 

 

I have a chart to which I would like to add a dynamic title. I created a measure to make the text for the dynamic title and it seems to work on a Card, but not when used for a chart title.

 

The dynamic part is the name of a user (X): "Antal sager løst af X fordelt på". When I choose a name in the table to the right of the chart, the text changes in the Card in the bottom but it doesn't change the title text.

Christianvs_0-1736166099765.png

 

Christianvs_1-1736166120263.png

 

Can anyone help me here?

 

Thanks

6 REPLIES 6
v-fenling-msft
Community Support
Community Support

Hi, @Christianvs 

May I ask if you have gotten this issue resolved? If it is solved, please share your solution and accept it as solution, it will be helpful for other members of the community who have similar problems as yours to solve it faster.


If it is not resolved, I hope you will provide the full .pbix file via OneDrive or SharePoint. Please be careful to remove all sensitive information and we will do our best to provide ideas for your issue.

 

 

I hope my suggestions give you good ideas, if you have any more questions, please clarify in a follow-up reply.
Best Regards,
Fen Ling,
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Hi @v-fenling-msft 

 

There havent been any suggestions to do anything different than I already does, so I'm afraid not.

I have a working measure that works correctly when I use it as conditional formatting in a card or a text box, but won't work when I use it as conditional formatting for the bar chart.

 

I'm afraid I wont be able to upload the .pbix file

DataNinja777
Super User
Super User

Hi @Christianvs ,

 

To add a dynamic title to a chart in Power BI, you need to create a measure that generates the desired text dynamically based on user interaction, and then use that measure to conditionally format the chart title. You mentioned that the dynamic text works on a Card visual but doesn't update when used as a chart title. This typically happens because the chart title needs to be explicitly linked to a field value for the dynamic text to work.

First, ensure you have a DAX measure that constructs the title based on the selected user. Here's an example of a measure that achieves this:

Dynamic Title = "Antal sager løst af " & SELECTEDVALUE('Users'[UserName]) & " fordelt på"

 

In this measure, SELECTEDVALUE is used to dynamically retrieve the name of the user selected from a slicer or table. The text string "Antal sager løst af " will change depending on the user's selection.

Once your measure is created, you need to apply it to the chart's title. To do this, select the chart in your report, go to the Visualizations pane, and under the Format Your Visual section, find the Title option. Next to the Title Text field, click the small fx button to open the conditional formatting window. In the conditional formatting settings, choose Field value as the formatting option and select your Dynamic Title measure from the dropdown. Click OK to apply the dynamic title.

This approach should resolve the issue where the title works in a Card visual but doesn't update dynamically in the chart title. The key step is setting the title text to be conditionally formatted by a measure, as Power BI does not automatically apply dynamic titles to charts without this configuration.

 

Best regards,

Hi @DataNinja777 

 

I posted my issue a bit too fast and forgot to add that the measure I use is as you write it:

Christianvs_0-1736167591558.png


And I already added it as a conditional formatted text:

Christianvs_1-1736167692444.png


It is in danish in my screendumps, but it should be possible to decipher whether I've done it correctly

Are you using the same column from the image below in your measure?

danextian_0-1736168551641.png

If you're using the same column, this should return a single value when one is selected otherwise it will be "alle burgere" as in your measure. If you're not using the same column, there could be more than one value  of  navnpabruger for each x1 value and if there are more than one values, SELECTEDVALUE will return the alternate result.





Dane Belarmino | Microsoft MVP | Proud to be a Super User!

Did I answer your question? Mark my post as a solution!


"Tell me and I’ll forget; show me and I may remember; involve me and I’ll understand."
Need Power BI consultation, get in touch with me on LinkedIn or hire me on UpWork.
Learn with me on YouTube @DAXJutsu or follow my page on Facebook @DAXJutsuPBI.

Hi @danextian 

 

Just to clerify, the columns in the image are anonymized. I added a white box with X1, X2 and so forth.

The actual table/column only returns one value as far as I am aware. And it works if I use the measure in a text box or a card, then the text displays the name of the selected user correctly. But if I select multiple values it returns "alle brugere".

 

So it seems that the measure that created the dynamic text works perfectly fine when I use it in a text box or a card, but not when I use it as a conditionally formatted title.

 

Did that answer your question?

Helpful resources

Announcements
March PBI video - carousel

Power BI Monthly Update - March 2025

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

March2025 Carousel

Fabric Community Update - March 2025

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

Top Solution Authors