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
smaru
Regular Visitor

Have new line character in Tooltip

I need to show a Tool-tip that has multiple lines. I need a Line break between consecutive lines. Tooltip = "Line 1" & UNICHAR(10) & "Line 2" This gives me output in tooltip as - Line1 Line2 However, I need output as - Line1 Line2 I tried using UNICHAR(10) twice, but its not working - Tooltip = "Line 1" & UNICHAR(10) & UNICHAR(10) & "Line 2"
1 ACCEPTED SOLUTION
smaru
Regular Visitor

I have achieved it using below calculation

 

Calc = "Calc1: This is description for Calc1" & UNICHAR(10) & UNICHAR(847) & UNICHAR(10) & "Calc2: This is description for Calc2"

 

Calc.PNG

View solution in original post

7 REPLIES 7
Anonymous
Not applicable

1) Create a Measure with an UNICHAR

Info button = UNICHAR(128712)

2) Create a Card Visual with this Measure 

3) Enable Tooltip in Card Visual

4) Create new tooltip page with Texbox with content you want.

5) Change original page Tooltip in Card Visual to customized Tooltip page

v-jianhe-msft
Resolver II
Resolver II

Hi,

 

So what tooltip effect do dou want to achieve, to make it rendering in two lines? If so, the tool-tip does not support the new line rendering format. 

 

You could submit an idea on https://ideas.powerbi.com/forums/265200-power-bi-ideas

 

BR,

Henry 

 

Yes. I am using Custom Visual for Dynamic Tool-tip. Here I am using this Tool-tip to display some information to user about the calculations and usability. However, I am not able to get the spaces between the lines in Tool-tip it looks very much conjusted

 

So, below is my calculated field

 

Calc.PNG

 

Calc.PNG

 

My objective is to get the space between two line so it looks good from readability perspective.

 

Thanks!!

smaru
Regular Visitor

I have achieved it using below calculation

 

Calc = "Calc1: This is description for Calc1" & UNICHAR(10) & UNICHAR(847) & UNICHAR(10) & "Calc2: This is description for Calc2"

 

Calc.PNG

Hi, I found an alternative way of having a new line in the tooltip mouse hover. Just try adding underscore instead of space or lines.. e.g.,  "Line 1:" & "____________________________________________" & "Line2 "TTpic.png

 

 

letizia
Frequent Visitor

Hi, unichar doesn't work in tooltip text. 

Didn't work for me too.

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.