March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early bird discount ends December 31.
Register NowBe one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now
Hello All,
Please does anyone know whether it's possible yet to add a line break in a column header in the matrix visualisation?
Thanks,
MR
Solved! Go to Solution.
You may use the following calculated column.
Column = SUBSTITUTE ( Table1[Column2], UNICHAR ( 32 ), UNICHAR ( 10 ) )
I suggest using emptycharacter.com which allows you to copy a character that resembles a space but Power BI lets you use as many as you want and will not cut it down to one like a typical space. In your values/column header in Power BI, input these before/after text then adjust column header width. By putting some of these characters before and after L52, then centering the column and adjusting the width, I was able to accomplish the below.
What a great suggestion, thank you! I was not aware of https://emptycharacter.com/ but now will plan to use that - very helpful site!
Also, I hope I never visit that site only to find my picture staring back at me! 😛
Hi,
No You cannot add a line break to the column Headers
Alternatively add a new record in the column used in Row Headers with value as Blank. Sorting it properly would make the Blank to appear below the Column Headers. This would give the look of a space after column header as any way you blank item in the Row Header will not have any data with it
Thanks @Thejeswar, I was trying to do like this:
change:
December YTD
to this:
December
YTD
But I guess it is not possible. Sure wastes a lot of space!
Thanks for your help.
CM
We wanted to show
CY FCST as
CY
FCST
Here's how we did it
Worked for me. Make sure you have Text wrap set to On for Column headers.
Another option for typing these if you have keyboard with a number pad, you can hold down the Alt key and type 0160, which is a unicode "No-Break Space".
It's smaller than an Em Space, so I type one, copy it, and paste in as many as I need to shift the text to the next line. If you don't have a number pad on your keyboard, copy it from Word. You can find it quickly on the "Special Characters" tab.
If you are doing this right, the special spaces should appear in the column name after you rename it in the Visualizations pane like this:
If you just used normal spaces, they are visible while editing:
But after you hit enter, the whitespace is trimmed:
The "special" space characters don't get trimmed, so that's what makes this trick work.
I also put a "normal" space after the "special" space characters with the Alt+0160 and it works better. I don't think you need it with the Em Space, but you can try it if the line wrapping isn't working for you.
This doesn't work... At all!
You may use the following calculated column.
Column = SUBSTITUTE ( Table1[Column2], UNICHAR ( 32 ), UNICHAR ( 10 ) )
@v-chuncz-msft wrote:
You may use the following calculated column.
Column = SUBSTITUTE ( Table1[Column2], UNICHAR ( 32 ), UNICHAR ( 10 ) )
Why is this accepted as a solution?
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.
User | Count |
---|---|
114 | |
76 | |
57 | |
52 | |
44 |
User | Count |
---|---|
165 | |
116 | |
63 | |
57 | |
50 |