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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
Syndicate_Admin
Administrator
Administrator

How can I create a tooltip in which I change the metric to be displayed according to where I pass the cursor

Jaumedomi_0-1748429171851.png

Is there a way for one measure or another to be displayed in the tooltip depending on where the cursor passes? For example, if I select the Travelers value, I will be shown only the Travelers line, and if not, I will be shown the revenue line.

I have tried with field parameters but it does not work, the two measurements continue to come out.

1 ACCEPTED SOLUTION

In the end I solved it differently, doing another powerBI visualization strategy, playing with the colors and measurements that returned BLANK

View solution in original post

10 REPLIES 10
v-veshwara-msft
Community Support
Community Support

Hi @Syndicate_Admin ,

Following up to see if your query has been resolved. If any of the responses helped, please consider marking the relevant reply as the 'Accepted Solution' to assist others with similar questions.

If you're still facing issues, feel free to reach out.

Thank you.

In the end I solved it differently, doing another powerBI visualization strategy, playing with the colors and measurements that returned BLANK

Hi @Syndicate_Admin ,

Just checking in again to see if you'd be open to sharing the approach you used, it could help others facing similar scenarios.

Also, please consider marking any helpful reply (or your own) as the accepted solution to assist others with similar issues.

Thanks again for confirming the issue is resolved.

Thanks for the update, and glad to hear you found an alternative approach that worked for your scenario.

If you're open to it, feel free to share a few details about the visualization strategy you used, especially the technique with colors and returning BLANK measures. It could be helpful for others exploring similar tooltip behavior.

Appreciate you following up.

v-veshwara-msft
Community Support
Community Support

Hi @Syndicate_Admin ,

Just checking in to see if you query is resolved and if any responses were helpful. If so, kindly consider marking the helpful reply as 'Accepted Solution' to help others with similar queries. 

Otherwise, feel free to reach out for further assistance.

Thank you.

v-veshwara-msft
Community Support
Community Support

Hi @Syndicate_Admin ,

Thanks for reaching out to Microsoft Fabric Community.

Based on the approach described in the blog post, it is possible to achieve your desired behavior by creating separate tooltip pages for each measure and linking them to the matrix. Here’s how you can set it up:

 

  1. Create a separate tooltip page for each measure (Travelers and Revenue):
    Go to your report and create a new page.

    1. In the page settings (under "Format" > "Page Information"), enable "Tooltip".

    2. Add a visual to this page that shows only the Travelers data. For example, use a line chart showing only the Travelers line.

    3. Repeat the same process for the Revenue tooltip page.

  1. Assign the appropriate tooltip page to the matrix visual:

    1. In the matrix, go to the "Tooltip" section of the visual settings.(Format-->General-->Tooltip)

    2. Set the "Type" to "Report Page".

    3. Set the "Page" to "Auto". Power BI will automatically select the correct tooltip page based on the measure hovered over.

  2. Ensure measures in the matrix are displayed as columns:

      Place your measures (Travelers and Revenue) in the Values section of the matrix, not in rows or columns.

With this setup, when you hover over the Travelers column in the matrix, Power BI will show the tooltip page that corresponds to Travelers. When you hover over Revenue, it will show the Revenue tooltip page.

 

Hope this helps. Please reach out for further assistance.
If this post helps, then please consider to give a kudos and Accept as the solution to help the other members find it more quickly.


Thank you.

burakkaragoz
Community Champion
Community Champion

Hi @Syndicate_Admin ,

 

I get what you're trying to do

Unfortunately, Power BI doesn’t support fully dynamic tooltips that change based on hover context like that. Field parameters are great for switching visuals based on slicers, but they won’t respond to cursor position in the way you're describing.

One workaround is to use a report page tooltip and control visibility of visuals inside it using DAX. For example, you can create a measure like:

ShowTravelers = IF(SELECTEDVALUE('YourTable'[Category]) = "Travelers", 1, 0)

Then use this to show/hide visuals in the tooltip page using visual-level filters. It’s not perfect, but it gives you some control over what’s shown depending on the hovered value.

If my response resolved your query, kindly mark it as the Accepted Solution to assist others. Additionally, I would be grateful for a 'Kudos' if you found my response helpful.
translation and formatting supported by AI

In the matrix visual also what is seen is a measure of "Travelers" "Income". It is not a column per se, it is values. I give up

https://en.brunner.bi/post/dynamic-tooltip-pages-in-microsoft-power-bi-for-measure-columns

In this link they explain something but I can't understand what he does and how he does it

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

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