The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredCompete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.
I think I know this isn't going to be possible, but I have measures with a braket indicating if it's mixed currency or GBP. For example
Claims - Current Month (Mixed Currency)
Claims - Prior Month (Mixed Currency)
Claims - Current Month (GBP)
Claims - Prior Month (GBP)
And I really want the measure name to have the brackets on the row underneath. But, because this is just text, UNICHAR(10) doesn't work before the equal sign. Is there a fancy way of doing what I want without forcing the column size?
Solved! Go to Solution.
Hi @JemmaD - Unfortunately, in Power BI, measure names cannot directly include line breaks or be formatted with additional rows for multi-line text.
If you're using a table or matrix visual, you can add a calculated column with your desired labels that simulate line breaks.
MeasureLabels =
SWITCH(
TRUE(),
[Measure] = "Claims - Current Month (Mixed Currency)", "Claims - Current Month" & UNICHAR(10) & "(Mixed Currency)",
[Measure] = "Claims - Prior Month (Mixed Currency)", "Claims - Prior Month" & UNICHAR(10) & "(Mixed Currency)",
[Measure] = "Claims - Current Month (GBP)", "Claims - Current Month" & UNICHAR(10) & "(GBP)",
[Measure] = "Claims - Prior Month (GBP)", "Claims - Prior Month" & UNICHAR(10) & "(GBP)",
BLANK()
)
Add this helper column to the row headers in a matrix or table visual.
The UNICHAR(10) will create a line break in text where supported (like headers or cell text).
Proud to be a Super User! | |
Hi @JemmaD - Unfortunately, in Power BI, measure names cannot directly include line breaks or be formatted with additional rows for multi-line text.
If you're using a table or matrix visual, you can add a calculated column with your desired labels that simulate line breaks.
MeasureLabels =
SWITCH(
TRUE(),
[Measure] = "Claims - Current Month (Mixed Currency)", "Claims - Current Month" & UNICHAR(10) & "(Mixed Currency)",
[Measure] = "Claims - Prior Month (Mixed Currency)", "Claims - Prior Month" & UNICHAR(10) & "(Mixed Currency)",
[Measure] = "Claims - Current Month (GBP)", "Claims - Current Month" & UNICHAR(10) & "(GBP)",
[Measure] = "Claims - Prior Month (GBP)", "Claims - Prior Month" & UNICHAR(10) & "(GBP)",
BLANK()
)
Add this helper column to the row headers in a matrix or table visual.
The UNICHAR(10) will create a line break in text where supported (like headers or cell text).
Proud to be a Super User! | |