cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
PowerBIWhat
Helper I
Helper I

Add a line break to the title of a visual

Hi Everyone,

 

I have a number of KPI visuals where I want the title to include a line break so that when I wrap text, the subtitle is on another line.

 

I have a number of these KPI boxes showing the same stat but they are filtered by region. I want the title to display Region and then the definition of the stat on a separate line.

 

As an example:

 

England

Month to date sales daily run rate

 

But I can't seem to add a line break after the region, so I end up with:

 

England Month to date

sales daily run rate

 

Which looks horrible and looks worse because each region is a different length of characters. Is there a way to add the line breaks? I tried adding a load of spaces but that didn't work.

 

Thanks in Advance,

1 ACCEPTED SOLUTION
v-yingjl
Community Support
Community Support

Hi @PowerBIWhat ,

You can try to create a measure to store the title with a line break, apply it for title conditional format and disable 'Word wrap' option:

Title = "England 
Month to date sales daily run rate"

title.png

 

Best Regards,
Community Support Team _ Yingjie Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

5 REPLIES 5
wac1ldy
Frequent Visitor

Don't forget to take WordWrap OFF for whatever your using.

v-yingjl
Community Support
Community Support

Hi @PowerBIWhat ,

You can try to create a measure to store the title with a line break, apply it for title conditional format and disable 'Word wrap' option:

Title = "England 
Month to date sales daily run rate"

title.png

 

Best Regards,
Community Support Team _ Yingjie Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Petja
Frequent Visitor

Problem with this solution for me is it does not expand the title area and thus title text goes over plot.

 

screenshot.png

Great. Is there a way to make region dynamic? Adding the field to the measure

lbendlin
Super User
Super User

I played a bit with UNICHAR() but none of the usual suspects seem to work. Feels like the Power BI team does some severe filtering on the strings that are sent to the title renderer.  Might be worth to raise this as an idea.

Helpful resources

Announcements
Power BI Show Episode 10 Recap

The Power BI Community Show

Watch the playback when Amit Chandak, a Power BI Super User, demos how to use Field Parameters to make reports more dynamic.

Power BI Dev Camp Session 26

Ted's Dev Camp - October 6, 2022

Watch the playback of Session 26 with Ted Pattison!

Health and Life Sciences Power BI User Group

Health and Life Sciences Power BI User Group

Power BI specialists at Microsoft have created a community user group where customers in the provider, payor, pharma, health solutions, and life science industries can collaborate.

Ignite 2022

What's Next at Microsoft Ignite 2022

Explore the latest innovations, learn from product experts and partners, level up your skillset, and create connections from around the world.

Top Solution Authors