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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
RoSch
Frequent Visitor

Card (New) text wrap issue

Hi everyone,

 

I have an issue with the new card using a text measure. It still does not wrap the text and there is no way to make it work. It work with some particular combination of:

  • Text length
  • Font
  • Visual dimension.

 

 

Font 12, Visual Dimension 468 x 795: the text is not wrapped

RoSch_0-1710407082753.png

Font 20, Visual Dimension 468 x 795: the text is wrapped

RoSch_1-1710407129709.png

Font 20, Visual Dimension 468 x 795 but different string: not wrapped

RoSch_3-1710407202833.png

Font 12, Visual Dimension 468 x 795 same string as above: not wrapped

RoSch_4-1710407266158.png

Is there a way to make it work? I need to use the card as a tooltip and need the font to be on the smaller side. These cards would be so very useful if they worked as promised with the text with formatting.

 

Many thanks,

 

R

1 ACCEPTED SOLUTION

Hi @RoSch 

As @Kishore_KVN  mentioned, you can use UNICHAR(10), and after testing, the problem you have mentioned is related to the new card visual design, perhaps you can consider an alternative.

You can craete a measure with UNICHAR(10) , then put the measure to a table visual.

e.g 

 

Measure = "A for test"&UNICHAR(10)&"B for test"&UNICHAR(10)&"C for test"

 

Output

vxinruzhumsft_0-1710485615984.png

It will always wrap and will not affected by the text size and visual  size.

 

 

Best Regards!

Yolo Zhu

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

3 REPLIES 3
Kishore_KVN
Super User
Super User

Hello @RoSch , if you want to split words as per your interest please place UNICHAR(10) in between which will help you for the line break. 

 

If this post helps, then please consider accepting it as the solution to help other members find it more quickly. Thank You!!

Hi @Kishore_KVN ,

The measure contains the breaks (as you can clearly see in the third screen shot) and it works fine with a normal card visual. However, in the normal card visual you cannot align the text to the left, which is what I would need, in addition to showing the full text.

 

Cheers,

 

R

Hi @RoSch 

As @Kishore_KVN  mentioned, you can use UNICHAR(10), and after testing, the problem you have mentioned is related to the new card visual design, perhaps you can consider an alternative.

You can craete a measure with UNICHAR(10) , then put the measure to a table visual.

e.g 

 

Measure = "A for test"&UNICHAR(10)&"B for test"&UNICHAR(10)&"C for test"

 

Output

vxinruzhumsft_0-1710485615984.png

It will always wrap and will not affected by the text size and visual  size.

 

 

Best Regards!

Yolo Zhu

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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