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

Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now

Reply
SteveD2
Resolver I
Resolver I

Conditional Title with Line Return

I've written DAX measures to use in the titles of card visuals as conditional text that looks like this;

 

Store Count Title = 
Var New_Line = UNICHAR(10)
Return
"Store Count: "&New_Line& FORMAT( [Store Count], "#,##0")

 

However, what I find is, either the code is ignored or the desired result is handled inconsistently by the visual. Referring to the screenshot below, what I expect to see is in card 1. However, Card 2, which has isn't displaying the value on the new line, while card 3 has word wrap turned off, displays the value correctly but, the title background is not extended to the second line.

Card visual.png

Ideally, I want the cards to present consistently with a heading at the top and the value below with the background extended to both lines... any suggestions?

3 REPLIES 3
amitchandak
Super User
Super User

@SteveD2 , refer if this can help

https://www.fourmoo.com/2019/07/09/dax-how-to-get-a-line-break-in-a-dax-measure-for-labels-or-titles...

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

@amitchandak Thanks for that. The article is helpful but, does not fix the problem. The issue is if I want the title to wrap where the Unichar(10) code is, I can do so, by turning word wrap off but, the title background does not extend to the next row. I tend to think it may be a bug in conditional formating.

Hi @SteveD2 ,

 

Thank you to point it, We have the same result as yours, this issue will be reported and we will notice you if we have any new information.

 

2.jpg


Best regards,

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

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

February Power BI Update Carousel

Power BI Monthly Update - February 2026

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.