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

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes! Register now.

Reply
Anonymous
Not applicable

How to display sentence in tooltips?

Hello experts,

 

How can we show sentence in tooltips? 

nurulizzaty_0-1656413020484.png

For example, if it is a Public Holiday i want to provide some details for it.

eg : Public Holiday (It's a Holiday for a country............)

       State Holiday (It's a ..........)

       Non Holiday (It's a ..........)

 

OR 

 

Can we display the sentence in the legend? (Public Holiday, State Holiday, Non-Holiday)

 

Really need your help. Thank you in advanced.

 

Regards,

Izzaty

4 REPLIES 4
PaulDBrown
Community Champion
Community Champion

Depending on how your data is set up, you could create measures for each category to use in the tooltip bucket- Something along the lines of:

To show the public holiday dates:

 

Holiday Dates =
VAR _HD =
    CONCATENATEX (
        FILTER ( VALUES ( Table[Date] ), Table[Date type] = "Public Holiday" ),
        Table[Date],
        ", "
    )
RETURN
    "Holiday dates: " & _HD

 





Did I answer your question? Mark my post as a solution!
In doing so, you are also helping me. Thank you!

Proud to be a Super User!
Paul on Linkedin.






Saap
Resolver III
Resolver III

Hi @Anonymous 

You can create measure where you specify the text you want to show.
Then put this measure in a tooltips field in a visual.

Saap_0-1656415026372.png

 

Anonymous
Not applicable

Hi @Saap 

 

I tried & it works.. but, it doesnt really serve purpose as i want to display the meaning for each holiday..

If i add the measure, even if it's not holiday, then it will show details on holiday..

 

Is there any way we can add the sentence in the legend? so that when user hover to the legend for example Public Holiday, then it will display the meaning of it..

Anonymous
Not applicable

Hi @Anonymous ,

You can refer the following links to achieve it.

Dynamic tooltip with text measure

To update your measure as below.

dynamic_tooltip = 
var _lan_ = SELECTEDVALUE('Table'[Lan])
return
SWITCH(_lan_, "FR", "Texte en français","EN","Text in English")
yingyinr_0-1656667146170.png

A TRULY DYNAMIC TOOLTIP

If the above one can't help you get the desired result, please provide some sample data in your tables (exclude sensitive data) with Text format and your expected result with backend logic and special examples. It is better if you can share a simplified pbix file. You can refer the following link to upload the file to the community. By the way, what's the meaning for each holiday? For example, if the date is on International Labor Day, then the tooptip will display "It is International Labor Day"? Thank you.

How to upload PBI in Community

Best Regards

Helpful resources

Announcements
September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 2025 Power BI update to learn about new features.

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.

Top Solution Authors
Top Kudoed Authors