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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
GrayGunn5
Frequent Visitor

Matrix tooltip

I have a table of elements such as:

GrayGunn5_0-1666441072824.jpeg

 

Each person can have multiple categories. From this table I have managed to create a matrix like this:

GrayGunn5_1-1666441072828.jpeg

 

In order to achieve this (with help from this forum) I used the following Measure to aggregate the numbers:

 

Measure = if(VALUES(Classification[Classification])=VALUES(Classification_dup[Classification]),0,CALCULATE([People],CALCULATETABLE(SUMMARIZE(VALUES(Data[IdPerson]),Data[IdPerson]),ALL(Classification),USERELATIONSHIP(Data[Classification],Classification_dup[Classification]))))
 

I am now struggling with trying to create a tooltip that shows the Name (or ID) of the people in each cell, i.e. I want to create something that liiks like this:

 

GrayGunn5_2-1666441072826.jpeg

 

 

The mock up file is attached below:

 

https://www.dropbox.com/s/i2wrw6zowwjzxs0/Cross%20matrix%20example%20post.pbix?dl=0 

 

I would be very grateful for any help.

1 ACCEPTED SOLUTION
v-rzhou-msft
Community Support
Community Support

Hi @GrayGunn5 ,

 

I think you can try to create this measure to filter your visual in your tooltip page.

Filter = 
VAR _C1 =
    SELECTEDVALUE ( Classification[Classification] )
VAR _C2 =
    SELECTEDVALUE ( Classification_dup[Classification] )
VAR _VALUES =
    CALCULATETABLE (
        VALUES ( Data[IdPerson] ),
        FILTER ( ALL ( Data ), Data[Classification] = _C2 )
    )
RETURN
    IF ( _C1 = _C2, 0, IF ( MAX ( Data[IdPerson] ) IN _VALUES, 1, 0 ) )

Here I create a table visual by 'Data'[IdPerson] and keep all filters from 'Classification'[Classification].

RicoZhou_1-1666602951585.png

Add this measure into visual level filter and set it to show items when value = 1.

 

RicoZhou_0-1666602935653.png

Result is as below.

RicoZhou_2-1666603022293.png

For more details: Create tooltips based on report pages

 

Best Regards,
Rico Zhou

 

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

 

View solution in original post

2 REPLIES 2
v-rzhou-msft
Community Support
Community Support

Hi @GrayGunn5 ,

 

I think you can try to create this measure to filter your visual in your tooltip page.

Filter = 
VAR _C1 =
    SELECTEDVALUE ( Classification[Classification] )
VAR _C2 =
    SELECTEDVALUE ( Classification_dup[Classification] )
VAR _VALUES =
    CALCULATETABLE (
        VALUES ( Data[IdPerson] ),
        FILTER ( ALL ( Data ), Data[Classification] = _C2 )
    )
RETURN
    IF ( _C1 = _C2, 0, IF ( MAX ( Data[IdPerson] ) IN _VALUES, 1, 0 ) )

Here I create a table visual by 'Data'[IdPerson] and keep all filters from 'Classification'[Classification].

RicoZhou_1-1666602951585.png

Add this measure into visual level filter and set it to show items when value = 1.

 

RicoZhou_0-1666602935653.png

Result is as below.

RicoZhou_2-1666603022293.png

For more details: Create tooltips based on report pages

 

Best Regards,
Rico Zhou

 

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

 

lbendlin
Super User
Super User

Matrix visuals do not support custom tooltips. If this is important to you please consider voting for an existing idea or raising a new one at https://ideas.powerbi.com

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!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.