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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

Reply
Anonymous
Not applicable

How to create a Tooltip text, that can be altered by filters?

Good afternoon to everyone reading this,

It looks like a simple problem, but I haven't figured this out.

In my report, I have a dashboard which can be filtered by year, month and subcompany. Then I have some graphs, which I created a specfic custom tooltip for each. In my custom tooltip, I have another graph and a text under it, explaining it. However, if I change the subcompany, the values are different, and I need a different text to explain and interpret the graphic, the tooltip graphic is working fine, but the text won't change. I will probably have to create multiple tooltips for each graph, with different texts in each one of them, but I'm not sure if its the best way, nor how to make it, because a graph can only have 1 tooltip.

Anyone has ideas on how to make this work?

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

Hi @Anonymous ,

I created a simple sample. You could have a try and check if it is what you want.

Measure =
VAR vSelectedValue =
    HASONEFILTER ( 'Table'[Country] )
RETURN
    SWITCH (
        vSelectedValue,
        MAX ( 'Table'[Country] ) = "Canada", "A",
        MAX ( 'Table'[Country] ) = "Germany", "B",
        MAX ( 'Table'[Country] ) = "France", "C",
        MAX ( 'Table'[Country] ) = "Mexico", "D"
    )

1.gif

For more details, please see the attachment. If it is not what you want, please share a few screenshots or more details about it. We will understand clearly.

 

Best Regards,

Xue Ding

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

Best Regards,
Xue Ding
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

5 REPLIES 5
v-xuding-msft
Community Support
Community Support

Hi @Anonymous ,

I created a simple sample. You could have a try and check if it is what you want.

Measure =
VAR vSelectedValue =
    HASONEFILTER ( 'Table'[Country] )
RETURN
    SWITCH (
        vSelectedValue,
        MAX ( 'Table'[Country] ) = "Canada", "A",
        MAX ( 'Table'[Country] ) = "Germany", "B",
        MAX ( 'Table'[Country] ) = "France", "C",
        MAX ( 'Table'[Country] ) = "Mexico", "D"
    )

1.gif

For more details, please see the attachment. If it is not what you want, please share a few screenshots or more details about it. We will understand clearly.

 

Best Regards,

Xue Ding

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

Best Regards,
Xue Ding
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Greg_Deckler
Super User
Super User

Seems like you want to use ISINSCOPE

Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
The Definitive Guide to Power Query (M)

DAX is easy, CALCULATE makes DAX hard...
Anonymous
Not applicable

@Greg_Deckler I'm not familiar with that funcion, how would it look like?

Anyway, thanks @v-xuding-msft for the solution! Works just fine 😃

Hi @Anonymous ,

Glad it works for you. 😊

For the function of ISINSCOPE that Greg suggests, I add some blogs that you could reference.

ISINSCOPE

New DAX function: ISINSCOPE 

https://info.enterprisedna.co/dax-function-guide/isinscope/ 

Use IsInScope to get the right hierarchy level in DAX 

 

Best Regards,

Xue Ding

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

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

ISINSCOPE is kind of the more modern version of HASONEVALUE.


Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
The Definitive Guide to Power Query (M)

DAX is easy, CALCULATE makes DAX hard...

Helpful resources

Announcements
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel1

Power BI Monthly Update - May 2024

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