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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
kgrafton86
Frequent Visitor

Line feed character UNICHAR(10) shows up as 
 in measure driven data labels

Hi all! I recently updated to the May 2023 desktop update of PBI, and the measure driven data labels feature solves something I've been fighting with for a while now. I'm looking at how many conditions within a specified set each patient in a list has, and I'm using a stacked bar chart as the visualization. I'd like the data labels to show the number of conditions, and then on the next line, the number of patients. I have another measure that I wrote where I used UNICHAR(10) to make a new line and it works correctly (I don't know if it's because the measure was built before I updated, if it's because it's a different type of visual, or some other reason), but when I do the same here it shows as 
 instead. 

 

Here is the measure, which aside from not giving me a new line is giving the correct results: 

 

ConditionCTLabel = SELECTEDVALUE(AllPatients[ConditionCT]) & ":" & UNICHAR(10) & COUNT(AllPatients[ConditionCT])

 

Here are the resulting labels in the visualization: 

kgrafton86_0-1686783053421.png

And here's essentially what I'd like it to look like:

kgrafton86_2-1686783361435.png

 

Almost everything I've googled has said to turn on word wrap, but there is no option for word wrap that I can find on this visualization. Am I missing something? Doing something wrong? TIA

1 ACCEPTED SOLUTION
kgrafton86
Frequent Visitor

1 REPLY 1
kgrafton86
Frequent Visitor

Looks like this is a known error that should be fixed soon 

https://twitter.com/insightsmachine/status/1667826657527480320?s=46&t=c9TBdIfLHaRTfzlzORxQ4A

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.