Don't miss your chance to take the Fabric Data Engineer (DP-600) exam for FREE! Find out how by attending the DP-600 session on April 23rd (pacific time), live or on-demand.
Learn moreNext up in the FabCon + SQLCon recap series: The roadmap for Microsoft SQL and Maximizing Developer experiences in Fabric. All sessions are available on-demand after the live show. Register now
Hi, I am trying to get my tooltip value to display a custom value for each unique measure in the "Values" field in my Matrix visual.
For example, I have the below fields in my visual. When I hover over a value in my matrix, I want a custom message to pop up based on the measure I have hovered over.
Example: When I hover over a value associated with the "Calendar Month Settlement" measure below I want it to show "1" and if I hover over a value associated with the "WTI CMA" measure in the matrix I want it to show "2" etc. So I want my custom message to show up based on the measure I am hovering over. Is there a way I can write this in DAX?
Solved! Go to Solution.
Hi @auzzieb ,
According to your description, here are my steps you can follow as a solution.
(1) Creates a new table containing the names of the measures.
Table (2) = DATATABLE (
"Name", STRING,
{
{ "WTI" },
{ "WTI CMA" }
}
)
(2) We can create a measure.
Measure 2 = SWITCH(TRUE(),
SELECTEDVALUE('Table (2)'[NAME])="WTI",[WTI],
SELECTEDVALUE('Table (2)'[NAME])="WTI CMA",[WTI CMA])Measure = SWITCH(TRUE(),
SELECTEDVALUE('Table (2)'[NAME])="WTI",1,
SELECTEDVALUE('Table (2)'[NAME])="WTI CMA",2)
(3) Tooltip Page:
Then the result is as follows.
Best Regards,
Neeko Tang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @auzzieb ,
According to your description, here are my steps you can follow as a solution.
(1) Creates a new table containing the names of the measures.
Table (2) = DATATABLE (
"Name", STRING,
{
{ "WTI" },
{ "WTI CMA" }
}
)
(2) We can create a measure.
Measure 2 = SWITCH(TRUE(),
SELECTEDVALUE('Table (2)'[NAME])="WTI",[WTI],
SELECTEDVALUE('Table (2)'[NAME])="WTI CMA",[WTI CMA])Measure = SWITCH(TRUE(),
SELECTEDVALUE('Table (2)'[NAME])="WTI",1,
SELECTEDVALUE('Table (2)'[NAME])="WTI CMA",2)
(3) Tooltip Page:
Then the result is as follows.
Best Regards,
Neeko Tang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
This is awesome, I was looking for this for ages, no one could find a solution, even GPT o1 preview failed. Thanks so much!!
@auzzieb , You can try tooltip page with Textbox and use measure in text box
Power BI tooltip page: https://youtu.be/cN8AO3_vmlY?t=36240&list=PLPaNVDMhUXGYU97pdqwoaociLdwyDRn39&index=1
I appreciate the suggestion and have seen this video. However, I don't believe it shows my particular case. Could you show an example of some dax that would allow my tooltip to show a "1" for example if I'm hovering over a certain measure and a "2" for example if I'm hovering over a different measure. I want to reference the measure name in my Dax and systematically tell it display a "1" when hovering over a cell in my matrix associated with my "WTI CMA" measure in the above example.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
| User | Count |
|---|---|
| 48 | |
| 43 | |
| 39 | |
| 19 | |
| 17 |
| User | Count |
|---|---|
| 69 | |
| 63 | |
| 32 | |
| 30 | |
| 23 |