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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

Reply
Aiya
Regular Visitor

How to get the hover cell row and column header in a table visual in tooltips report ?

In my power BI Dashboard, I have a visual table which showing columns from measures.

I want to show details report when user hover any cell in this table using tooltips, but how to get the hover cell row and column header ? 

6 REPLIES 6
Aiya
Regular Visitor

Thanks @Ritaf1983 

Aiya_0-1733458198750.png

what I want is when user hover any cell, like the one in above, how can I get the cell is "Paper" category and column is "Profit" ?

Thanks

@Aiya 
Then turn your table to the matrix. 
This is a basic matrix tooltip :

Ritaf1983_0-1733459581611.png

 

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




Regards,
Rita Fainshtein | Microsoft MVP
https://www.linkedin.com/in/rita-fainshtein/
Blog : https://www.madeiradata.com/profile/ritaf/profile

The default tooltip for the Table provides the information I need.
However, instead of using the default tooltip, I want to display a chart as a customized tooltip based on the row value and column header. The challenge is that I don’t know how to retrieve the column header. Additionally, the column data is dynamically generated, not sourced from a data table.

@Aiya 
You can use selectedvalue() like i used in my customized tooltip for the title :

 

Ritaf1983_0-1733461103894.png

This I a title dax :

Tooltip title = "YOY revenue change details of " & SELECTEDVALUE('multi graph'[Item])
and you need the separate tooltip for every wanted measure 
Ritaf1983_1-1733461224101.png

that the engine will take based on measures like drilling through

Ritaf1983_2-1733461285999.png

The pbix is attached

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

Regards,
Rita Fainshtein | Microsoft MVP
https://www.linkedin.com/in/rita-fainshtein/
Blog : https://www.madeiradata.com/profile/ritaf/profile

In my Power BI table (suppose it is 6 rows x 4 columns):
 
The rows represent demographic groups: "Youths," "Adult," "Elderly," "Female," "Male," "Overall."
The columns are "Demographic Group," "Any Contact," "Mental Health Contact," and "Non-Mental Health Contact."
- Column 1: Groups, from DemographicGroup[groups].
- Columns 2–4: Measures. (by changing the contact type below).
 
PercentageOfAnyContact = 
    RETURN
    SWITCH(
        SELECTEDVALUE(DemographicGroups[Group]),
        "Youths", DIVIDE(
            CALCULATE(
                SUM(contact_history[contact_value]), 
FILTER(
ALLSELECTED(contact_history), 
contact_history[age_group] = "Youths"
), 
                contact_history[contact_type] = "Any Contact", 
                contact_history[period] = "1-year"
            ), 
            CALCULATE(
                DISTINCTCOUNT(contact_history[patient_id]), 
FILTER(
ALLSELECTED(contact_history), 
contact_history[age_group] = "Youths"
            )
        ),
        "Adult", DIVIDE(
            CALCULATE(
                SUM(contact_history[contact_value]), 
FILTER(
ALLSELECTED(contact_history),
contact_history[age_group] = "Adult"
), 
                contact_history[contact_type] = "Any Contact", 
                contact_history[period] = "1-year"
            ), 
            CALCULATE(
                DISTINCTCOUNT(contact_history[patient_id]), 
FILTER(
ALLSELECTED(contact_history),
contact_history[age_group] = "Adult"
            )
        ),
        "Elderly", DIVIDE(
            CALCULATE(
                SUM(contact_history[contact_value]), 
FILTER(
ALLSELECTED(contact_history),
contact_history[age_group] = "Elderly"
), 
                contact_history[contact_type] = "Any Contact", 
                contact_history[period] = "1-year"
            ), 
            CALCULATE(
                DISTINCTCOUNT(contact_history[patient_id]), 
FILTER(
ALLSELECTED(contact_history),
contact_history[age_group] = "Elderly"
            )
        ),
        "Male", DIVIDE(
            CALCULATE(
                SUM(contact_history[contact_value]), 
FILTER(
ALLSELECTED(contact_history),
contact_history[gender] = "Male"
), 
                contact_history[contact_type] = "Any contact", 
                contact_history[period] = "1-year"
            ), 
            CALCULATE(
                DISTINCTCOUNT(contact_history[patient_id]), 
FILTER(
ALLSELECTED(contact_history),
contact_history[gender] = "Male"
            )
        ),
        "Female", DIVIDE(
            CALCULATE(
                SUM(contact_history[contact_value]), 
FILTER(
ALLSELECTED(contact_history),
contact_history[gender] = "Female"
), 
                contact_history[contact_type] = "Any contact", 
                contact_history[period] = "1-year"
            ), 
            CALCULATE(
                DISTINCTCOUNT(contact_history[patient_id]), 
FILTER(
ALLSELECTED(contact_history),
contact_history[gender] = "Female"
            )
        ),
        "Overall", DIVIDE(
            CALCULATE(
                SUM(contact_history[contact_value]), 
ALLSELECTED(contact_history),
                contact_history[contact_type] = "Any contact", 
                contact_history[period] = "1-year"
            ), 
            CALCULATE(
                DISTINCTCOUNT(contact_history[patient_id]),
ALLSELECTED(contact_history)
            )
        ),
        0
    )

Question: How to Determine the Hovered Column? Will need to know which demographic group and which "contact_type" hovered to produce a detailed chart as tooltips
Ritaf1983
Super User
Super User

Hi @Aiya 

Tooltips in Power BI currently work only with measures, specifically on values in visuals like tables or matrix visuals. Unfortunately, it's not possible to directly show tooltips for row or column headers.

As an alternative, you could use a workaround by placing a transparent button (or one with a small icon) near the headers or specific areas. You can configure the button to show a tooltip with the explanation when hovered over. While not ideal, this provides a functional way to convey the information you're looking to highlight.

Ritaf1983_2-1733457451234.png

 

Ritaf1983_1-1733457403429.pngRitaf1983_3-1733457492952.png

Same approach with "i"

Ritaf1983_4-1733457538876.png

The pbix is attached

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

Regards,
Rita Fainshtein | Microsoft MVP
https://www.linkedin.com/in/rita-fainshtein/
Blog : https://www.madeiradata.com/profile/ritaf/profile

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

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