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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

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
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.