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 September 15. Request your voucher.

Reply
Aarush9885
Regular Visitor

Tooltip showing same values across different measures in Matrix visual

Hi,
I have a Power BI report where I’m using a matrix visual. In the matrix, I don’t have separate columns for each metric — instead, I only have row fields and three calculated measures in the Values section:

  • Sales%

  • Return%

  • Discount%

I’ve also set up a tooltip page to show additional details when hovering over the matrix.

Problem:
No matter which measure (Sales%, Return%, or Discount%) I hover over in the matrix, the tooltip always shows the same result (e.g., 8.7k, 8.4k, 0k). The values do not change dynamically based on the specific measure being hovered over.

What I’ve understood so far:
The issue seems to be that the tooltip visual is not aware of which measure the user is hovering over, since the matrix only has row fields + values, but no actual column field to distinguish between Sales%, Return%, and Discount%. Because of this, the tooltip treats all three measures the same and returns identical results.

Question:

  • Is there a way to make the tooltip context-aware so it knows which measure is being hovered over?

  • Or is there an alternative modeling/design approach (such as unpivoting or using field parameters) that would allow the tooltip to respond correctly to each measure?

    Any guidance from the community would be appreciated.

8 REPLIES 8
danextian
Super User
Super User

hi @Aarush9885 

You will need to use a disconnected table that returns the desired calculation depending on the current row value. Dynamic format string is also needed if the measures have different formatting (%, $, or whole number only).

danextian_0-1757326253153.png

danextian_1-1757326617774.png

danextian_3-1757326660770.png

 

Please see the attached 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.
Aarush9885
Regular Visitor

Hey @Khashayar 

I tried implementing the field parameters approach you suggested. Unfortunately, I’m still getting the same values repeated across all columns in the matrix.

Thanks a lot for pointing me towards this approach though — it was helpful to explore.

Hello @Aarush9885,

The comment you are responding to has been removed.  I hope one of the answers provided help solve your question.

 

Best,

Natalie H.

Community Manager 

Hi @Aarush9885,

Thank you  for reaching out to the Microsoft fabric community forum.

You can fix this issue by unpivoting your columns. If you unpivot Sales, Return and Discount into a single column called Metric in Power Query, and keep the values in another column Metric values, then use Metric in columns and MetricValue in values of the matrix.

With this setup, the tooltip will get both Product and Metric context, so when you hover it will show the correct value for each metric instead of repeating the same number.

I tested it with my sample data, and it worked fine. Please find the attached screenshot and Pbix for your reference.

vhjannapu_0-1756875584426.png

Hope this helps if you have any queries we are  happy to assist you further.
Best Regards,
Community Support Team.

Hi @Aarush9885,
I hope the information provided above assists you in resolving the issue. If you have any additional questions or concerns, please do not hesitate to contact us. We are here to support you and will be happy to help with any further assistance you may need.

Regards,
Harshitha.

Hi @Aarush9885,
I hope the above details help you fix the issue. If you still have any questions or need more help, feel free to reach out. We are always here to support you.


Regards,
Harshitha.

FarhanJeelani
Super User
Super User

Hi @Aarush9885 ,

You've hit on a very common and tricky issue in Power BI when dealing with measures in the "Values" section of a matrix and custom tooltips! Your understanding is spot on: because your measures are all directly in the "Values" well, the tooltip page doesn't receive the necessary context to differentiate which measure the user is hovering over.

Let's explore the solutions, ranging from quick fixes to more robust modeling techniques.

Solutions to Make Tooltip Context-Aware
1. The "Unpivot" Approach (Using a Field Parameter)
This is often the most recommended and flexible solution in modern Power BI. Field parameters allow you to dynamically switch between measures (or columns) without complex DAX for each scenario.

How to Implement:

Create a Field Parameter for Measures:

Go to the "Modeling" tab.
Click "New parameter" -> "Fields".
In the dialog box:
Give it a name, e.g., "Analysis Type".
Drag your three measures (Sales%, Return%, Discount%) into the "Fields" box.
Ensure "Add slicer to this page" is unchecked (you won't need it for the matrix).
Click "Create".
This creates a new table (e.g., Analysis Type) and a field parameter.


Update Your Matrix Visual:

Remove your original measures (Sales%, Return%, Discount%) from the "Values" section of your matrix.
Drag the newly created field parameter field (e.g., Analysis Type) into the "Values" section of your matrix.
Now, the matrix will dynamically display the selected measure from the parameter.


Set Up Your Tooltip Page:

On your tooltip page, create a visual (e.g., a card or a small table).
Drag the same field parameter field (e.g., Analysis Type) into the "Values" or "Tooltip" field of this visual.
Crucially, to ensure your measures are used correctly within the tooltip: You need to create a new measure that dynamically chooses which of your original measures to display based on the field parameter.


Creating the Dynamic Measure for the Tooltip:

Tooltip Measure =
VAR SelectedAnalysisType = SELECTEDVALUE('Analysis Type'[Analysis Type]) // Get the name of the selected measure from the parameter
RETURN
SWITCH(
SelectedAnalysisType,
"Sales%", [Sales%], // Replace [Sales%] with your actual measure name
"Return%", [Return%], // Replace [Return%] with your actual measure name
"Discount%", [Discount%] // Replace [Discount%] with your actual measure name
// Add any other measures here
)

Now, on your tooltip page, place this Tooltip Measure in a card visual or wherever you want to display the dynamic value.


Link Tooltip:
Go back to your report page with the matrix.
Select the matrix.
Go to the "Format" pane.
Expand the "Tooltip" section.
Set "Type" to "Report page".
Select your tooltip page from the "Page" dropdown

 

2. The "Unpivot Other Columns" / "Unpivot by Measures" Approach (More Manual DAX)
This method involves restructuring your data model so that you have a column indicating the "Measure Name" and another column for the "Measure Value".

 

How to Implement:

Create a "Measures" Table:
Create a new calculated table.
Use DAX to create a list of your measure names:

Measures Table =
DATATABLE (
"Measure Name", STRING,
{
{ "Sales%" },
{ "Return%" },
{ "Discount%" }
}
)

Create a "Measure Value" Measure:
Create a new measure that dynamically calculates the value based on the selected measure name. This is similar to the Tooltip Measure above, but it will be used in your main matrix.

Measure Value =
VAR SelectedMeasureName = SELECTEDVALUE('Measures Table'[Measure Name])
RETURN
SWITCH(
SelectedMeasureName,
"Sales%", [Sales%],
"Return%", [Return%],
"Discount%", [Discount%]
)

 

Set Up Your Matrix Visual:

Remove your original measures from the "Values" section.
Drag Measures Table[Measure Name] into the "Rows" or "Columns" section of your matrix. (If you put it in columns, it's closer to the original setup.)
Drag your new Measure Value measure into the "Values" section.
Update Your Tooltip Page:

On your tooltip page, create a visual (e.g., card).
Drag Measures Table[Measure Name] into the "Fields" section.
Drag your Measure Value measure into the "Values" section of that visual.

 

I will recommend you to use method 1 using field parameter if you are familiar with it.

 

Please mark this post as solution if it helps you. Appreciate Kudos.

Thanks @FarhanJeelani ,

I tried implementing both of the suggested approaches. However, after applying them, the data is still not updating as expected — the tooltip continues to display the same values across all three columns instead of showing measure-specific values.
Is there another workaround to get distinct tooltip values for each column in a single matrix visual

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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

Top Kudoed Authors