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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends September 15. Request your voucher.

Reply
Asmasm
Helper I
Helper I

Can we prefix and postfix the text in dynamic chart title using a measure?

Can we prefix and postfix the text in dynamic chart title using a measure?

 

 

I need to use a dynamic text which can change in database. We use the word "Event" some users use meeting or Traning etc  

 

So  i need display in  charts the headings as "New Event members" or "new event count" or "Event Contributions" etc for different charts, but some use Meeting instead of event or any custom text. 

 

I'm acheiving it but using a new measure for each chart. 

Is there any generic way to acheive it or can we prefix or postfix text in conditional formatting ?

 

8 REPLIES 8
Anonymous
Not applicable

@lbendlin Thanks for your contribution on this thread.

Hi @Asmasm ,

Do you want to set a dynamic tile for the chart visual? If yes, you can refer the following links to get it.

Expression-based titles in Power BI Desktop - Power BI | Microsoft Learn

Chris Webb's BI Blog: Dynamic Chart Titles In Power BI 

How To Create Dynamic Chart Titles In Power BI 

vyiruanmsft_0-1715248268892.png

Best Regards

Thanks for reply. I did this but the issue is that i need to prefix and postfix text there.

i have many chart and i'm using "client" term there now im using a seperate measure for each chart title. Is there any way to prefix and postfix text in condtional formatting or any other work around?

Anonymous
Not applicable

Hi @Asmasm ,

Could you provide clarity on the conditions necessitating the addition of these prefix or postfix text? It is better if you can give a specific example to explain your requirement. Thank you.

In addition, please create a measure as below and check if it can get your expected result...

Dynamic Title = "Prefix Text " & SELECTEDVALUE('Table'[Client], "Default text") & " Postfix Text"

Best Regards

Asmasm
Helper I
Helper I

It has nothing to do with data. You can use ur own data and use any dynamic Title text

I cannot assist you if you are unable to provide sample data. I hope someone else can help you further.

lbendlin
Super User
Super User

Please provide sample data that covers your issue or question completely, in a usable format (not as a screenshot).

Do not include sensitive information or anything not related to the issue or question.

If you are unsure how to upload data please refer to https://community.fabric.microsoft.com/t5/Community-Blog/How-to-provide-sample-data-in-the-Power-BI-...

Please show the expected outcome based on the sample data you provided.

Want faster answers? https://community.fabric.microsoft.com/t5/Desktop/How-to-Get-Your-Question-Answered-Quickly/m-p/1447...

In nutshell we need to change the label clients in below charts with Agents or something which is being put by user in database. the client or agent is not fixed there may be any text.

Asmasm_0-1715062406194.png

 

Second request:Please provide sample data that covers your issue or question completely, in a usable format (not as a screenshot).

Do not include sensitive information or anything not related to the issue or question.

If you are unsure how to upload data please refer to https://community.fabric.microsoft.com/t5/Community-Blog/How-to-provide-sample-data-in-the-Power-BI-...

Please show the expected outcome based on the sample data you provided.

Want faster answers? https://community.fabric.microsoft.com/t5/Desktop/How-to-Get-Your-Question-Answered-Quickly/m-p/1447...

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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