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

The Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.

Reply
Deepesh153
Frequent Visitor

How can I create a single tooltip for mutliple cards

I want to create a single tooltip for mutliple cards on which when hover they change the values feild of the tooltip to the field in the card.As seen in the image I want to display the same type of tooltip for all the cards in a single tooltip page with there respective fields.But I have added the fields on the 'show tooltips on' options but it shows the same Revenue field instaed of the card's field in which I hover.

 

Screenshot 2025-03-10 172027.png

Screenshot 2025-03-08 213048.pngScreenshot 2025-03-10 171931.png

 

2 REPLIES 2
danextian
Super User
Super User

Hi @Deepesh153 

The simplest solution is to, instead of the actual measures in your card, use field parameters and just visually filter the card by the field parameter name - https://learn.microsoft.com/en-us/power-bi/create-reports/power-bi-field-parameters

 

Your tooltip will also need to use the field parameters.

 

Notice that the tooltip name changes from Total Revenue to Total Transactions and vice-versa.

danextian_0-1741609213938.gif

Please see the attached sample pbix





Dane Belarmino | Microsoft MVP | Proud to be a Super User!

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


"Tell me and I’ll forget; show me and I may remember; involve me and I’ll understand."
Need Power BI consultation, get in touch with me on LinkedIn or hire me on UpWork.
Learn with me on YouTube @DAXJutsu or follow my page on Facebook @DAXJutsuPBI.
(Virus scan in progress ...)
DataNinja777
Super User
Super User

Hi @Deepesh153 ,

 

To create a single tooltip for multiple cards in Power BI that dynamically changes based on the hovered field, start by creating a dedicated tooltip page. Rename this page to something like "Tooltip" and in the Format Pane, under Page Information, set the Page Type to Tooltip. Next, add a Card Visual to the tooltip page but do not assign any static fields. Instead, create a DAX measure that dynamically selects the relevant field based on what is being hovered over.

A simple measure for selecting a single field can be written as:

Tooltip Value = SELECTEDVALUE('Table'[Revenue])

However, if multiple fields such as Revenue, ADR, and Occupancy% need to be dynamically displayed, use a more flexible measure:

Tooltip Value = 
VAR RevenueCheck = HASONEVALUE('Table'[Revenue])
VAR ADRCheck = HASONEVALUE('Table'[ADR])
VAR OccupancyCheck = HASONEVALUE('Table'[Occupancy%])

RETURN
    SWITCH(
        TRUE(),
        RevenueCheck, SELECTEDVALUE('Table'[Revenue]),
        ADRCheck, SELECTEDVALUE('Table'[ADR]),
        OccupancyCheck, SELECTEDVALUE('Table'[Occupancy%]),
        BLANK()
    )

After creating this measure, assign it to the Card Visual on the tooltip page. This ensures that the tooltip dynamically updates to show the correct value based on what is hovered over. Next, go back to the main report page, select each card visual, and in the Format Pane, under Tooltip, set the Tooltip Page to "Tooltip" and turn on Keep all filters to maintain proper context.

If the tooltip does not dynamically update as expected and still shows only one field (e.g., Revenue), check that the dataset columns have proper relationships and that the HASONEVALUE condition correctly detects the hovered field. Also, ensure that the tooltip page has Keep all filters enabled. This method allows a single tooltip to dynamically display different values based on the field in the hovered card.

 

Best regards,

Helpful resources

Announcements