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

Prepping for a Fabric certification exam? Join us for a live prep session with exam experts to learn how to pass the exam. Register now.

Reply
SergeyA
New Member

How do I increase my Titel in my JSON file

Hi,

I want to set a certain allowable line width for the title bar so that if the text in the title bar is longer, the remainder will be moved to a next line. This is possible by changing the width of the visual, but I want to make it independent of the width of the visual, if possible.

 

I tried using "whiteSpace" and "maxWidth" that I found on google, but they don't work. At the moment the design looks like this:

"title": [{
                "show": true,
                "fontColor": { "solid": { "color": "#D22630" } },
                "alignment": "Left",
                "fontSize": 16,
                "fontFamily": "Calibri",
                "bold": true,
                "titleBold": true,
                "wordWrap": true,
                "whiteSpace": "pre-wrap",
                "maxWidth": "10",
                "wordBreak": "break-all"
            }],

, where the width for the example is 10, but Power BI does not respond to the given width. 

Important point. The report is connected to cube live, so DAX is not possible here.

 

Could you please tell me if this is possible in general? And if so, how?

 

Thanks a lot!

3 REPLIES 3
Anonymous
Not applicable

Hi @SergeyA,

Have you tried to use the ‘width’ property in theme file? In addition, you can also try to enable the ‘word wrap’ property if help with your scenario.

Use report themes in Power BI Desktop - Power BI | Microsoft Learn

Regards,

Xiaoxin Sheng

Hi, @Anonymous,

Thank you so much for your reply. The article is familiar to me, I have read it before. Unfortunately, PowerBI does not respond to these properties. I'm already pretty sure that this is generally not possible. Once again, thank you very much for your help!

Anonymous
Not applicable

HI @SergeyA,

In fact, currently these properties not fully released and can be recognized to use in power bi visuals. Perhaps you can try to submit an idea about support more properties about theme file usages.

Microsoft Power BI ideas

Regards,

Xiaoxin Sheng

Helpful resources

Announcements
May PBI 25 Carousel

Power BI Monthly Update - May 2025

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

May 2025 Monthly Update

Fabric Community Update - May 2025

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