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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

Reply
alfBI
Resolver I
Resolver I

Matrix with multiple values for a column - How to retrieve cell properties

Hi,

 

We have prepared a matrix table with 1 item on the column (row Name), 1 item on the column (Col Name) and two values (measure A & B). We would like to create a custom tooltip that displays the name of the measure when the mouse passes over the cell

That is when passing cursor over value in red

 

alfBI_1-1713185269732.png

tooltip shoud diplay:

 

Measure A: 11

 

How can we retriveve in DAX the name of the measure referred in the cell and its value?

 

 

Thx

 

1 ACCEPTED SOLUTION
Sergii24
Super User
Super User

Hi @alfBI, I don't think it's possible... Both measures are evaluated in a defined filter context (i.e. row3 and col2). While hovering between values 11 and 2 the filter context of PowerBI is not changing, which means both are evaluated. You can create a tooltip to show values of both or only one, but this one should be defined in advance (always Measure A or always Measure B). 
I've tried to play around with SELECTEDMEASURE() and similar functions but didn't find a way to obtain the desired result.

If you find a solution, please tag me as I'd like to learn how to do it!

View solution in original post

2 REPLIES 2
Sergii24
Super User
Super User

Hi @alfBI, I don't think it's possible... Both measures are evaluated in a defined filter context (i.e. row3 and col2). While hovering between values 11 and 2 the filter context of PowerBI is not changing, which means both are evaluated. You can create a tooltip to show values of both or only one, but this one should be defined in advance (always Measure A or always Measure B). 
I've tried to play around with SELECTEDMEASURE() and similar functions but didn't find a way to obtain the desired result.

If you find a solution, please tag me as I'd like to learn how to do it!

AnalyticPulse
Impactful Individual
Impactful Individual

i suggest creating a separate tooltip table for the tooltip and use the custom tooltip for meeting this requirement

Helpful resources

Announcements
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

Power BI Carousel June 2024

Power BI Monthly Update - June 2024

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

PBI_Carousel_NL_June

Fabric Community Update - June 2024

Get the latest Fabric updates from Build 2024, key Skills Challenge voucher deadlines, top blogs, forum posts, and product ideas.

Top Solution Authors