Forum Discussion
Line break in a visual
- 9 years ago
Hi Chapin4u,
After research, we can not add line break in text directly, because Power BI always strips line breaks out of text when it gets loaded into the Data Model. unichar function returns the Unicode character that is referenced by the given numeric value. unichar(10) return a unicode in your measure, and it is recognised by a text. So it is not working for you. As I tested, unichar(10) returns nothing. What's your expected result? Please review more details about UNICHAR in this blog.
Best Regards,
Angelia
Hi,
After reviewing a few answers here and combining solutions, I have found that this syntax for creating a measure works:
VAR VALUES_TO_DISPLAY =
CONCATENATEX( TABLE_NAME, COLUMN, UNICHAR(10) )
RETURN
IF(ISFILTERED(COLUMN), VALUES_TO_DISPLAY, "alt_text")
In this example values from the filtered column can be shown with a line brake in card visuals when Format Visual settings -> Callout ->Value -> [Text wrap] is toggled on.