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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

Reply
NadeemAhamed
Helper V
Helper V

custom tooltip based selected cell

Hello.

 

I have created one table or matirx visual. 

we have highlights some cell for the particular month slicer. 

 

is it possible to add custom note/tooltip and when user hover the curser on that cell note/tooltip popup should come as like excel. 

NadeemAhamed_1-1730271540879.png

 

 

6 REPLIES 6
v-xinruzhu-msft
Community Support
Community Support

Hi,

Thanks for the solution rajendraongole1  and bhanu_gautam  offered, and i want to offer some more information for user to refer to.

hello @NadeemAhamed , based on your description, you can refer to the following sample.

Sample data 

vxinruzhumsft_0-1735195523028.png

 

And i create two measures.

 

Color =
SWITCH (
    TRUE (),
    SELECTEDVALUE ( 'Table'[Type] ) = "A", "red",
    SELECTEDVALUE ( 'Table'[Type] ) = "B", "blue",
    SELECTEDVALUE ( 'Table'[Type] ) = "C", "green"
)
Tooltip =
SWITCH (
    TRUE (),
    SELECTEDVALUE ( 'Table'[Type] ) = "A", "it's A",
    SELECTEDVALUE ( 'Table'[Type] ) = "B", "it's B"
)

 

Then for the first requirement, can create a table visual, then click the conditional formatting, and select background color.

vxinruzhumsft_1-1735195804293.png

 

Then put the color measure to it.

vxinruzhumsft_2-1735195820643.png

 

Output 

vxinruzhumsft_3-1735195841305.png

 

And you can refer to the following link to know about the conditional formatting.

Apply conditional table formatting in Power BI - Power BI | Microsoft Learn

powerbi - How to conditionally format a row of a table in Power BI DAX - Stack Overflow

For the second requirement, add a new page and allow it  as tooltip.

vxinruzhumsft_4-1735196006157.png

Then set it actual size as tooltip.

vxinruzhumsft_5-1735196046409.png

Then add a card visual and put the tooltip measure to the visual.

vxinruzhumsft_6-1735196157531.png

 

The return the page that display the table visual, then open tooltip, and select report page, and select the page which set as tooltip.

vxinruzhumsft_7-1735196251327.png

 

Output

vxinruzhumsft_8-1735196262225.png

 

And you can refer to the following link to know more about the custom tooltip.

Create report tooltip pages in Power BI - Power BI | Microsoft Learn

 

Best Regards!

Yolo Zhu

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

rajendraongole1
Super User
Super User

Hi @NadeemAhamed - In Power BI, you can add custom tooltips to specific cells or values in a table or matrix visual, though it won't look exactly like Excel's comment tooltips.

Suggest you below stepup to configure the same using tooltip page for matrix visual

steps FYR:

In Power BI Desktop, create a new page specifically designed for tooltips>>Go to the page settings (the paint roller icon in the Visualizations pane).>>Under Page information, enable the Tooltip option>>Adjust the page size to "Tooltip" (320x240 pixels is a common size).

On this tooltip page>>You can use conditional formatting or measures to display dynamic text based on the context, such as the highlighted cells.

 

rajendraongole1_1-1730272669695.png

 

 

 

 

rajendraongole1_0-1730272563861.png

 

 

In Power BI, tooltips are generally limited to entire rows or fields rather than individual cells.

 

I hope this works in your scenerio

 





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!





@rajendraongole1 

 

Thank you rajendra for your valuable reply 

 

i have followed your steps. 

but iam not able to find the options to add the conditional formatting or measures to display dynamic text based on the context, such as the highlighted cells. with the background color

 

I would greatly appreciate your prompt response to this topic.

 

 

bhanu_gautam
Super User
Super User

@NadeemAhamed , Try using

Create a Tooltip Page:

In Power BI Desktop, go to the "Report" view.
Click on the "+" icon to add a new page.
Rename the page to something like "Custom Tooltip".
In the "Page Information" pane, toggle "Tooltip" to "On".
Set the page size to "Tooltip" under the "Page Size" settings.


Design the Tooltip:

On the tooltip page, add a text box or any visual that contains the message "reason: Due to some technical issue".
Set Up the Tooltip in the Table/Matrix Visual:

Go back to the main report page where your table or matrix visual is located.
Select the table or matrix visual.
In the "Visualizations" pane, go to the "Format" section.
Expand the "Tooltip" section and set "Type" to "Report page".
Select the tooltip page you created from the dropdown menu.
Add Conditional Tooltip Data:

Create a new measure or calculated column to conditionally show the tooltip for the value 23.


For example, you can create a measure like this and update as per you condition
TooltipMessage =
IF(
SELECTEDVALUE('YourTable'[Current actual]) = 23,
"reason: Due to some technical issue",
BLANK()
)
Add this measure to your table or matrix visual




Did I answer your question? Mark my post as a solution! And Kudos are appreciated

Proud to be a Super User!




LinkedIn






@bhanu_gautam 

 

Thank you for detailed explaination.

 

I already have measures to add background color for the particular cells based on the month slicer. 

Ex: 

Table1_BG_color =


VAR _Month=SELECTEDVALUE('Financial Year'[Month])
 
VAR _company=SELECTEDVALUE(PV_CompanyList[Company name])
 
VAR _Planactual = SELECTEDVALUE(PV_Category[Plan/Actual])
 
 
RETURN
SWITCH(
    TRUE(),
    _Planactual = "rate(%)w.r.t. Plan",
      IF(_Month= "Sep" &&  (_company="TKM - Total (A+B)" || _company="Muruti Suzuki - Total"||_company="Suzuki Motor Gujarat - Total"),"#66FFCC","#FDE9D9")
    )
 

I have followed your steps and i can see the tooltip if i hover the curser on the cells but i have doubt should i create new measure for the tooltip and where to add that or shall i add that into my backgroud color. measure. 

Any body have any idea?

request your support on this 

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Prices go up Feb. 11th.

Feb2025 Sticker Challenge

Join our Community Sticker Challenge 2025

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

Jan NL Carousel

Fabric Community Update - January 2025

Find out what's new and trending in the Fabric community.