Forum Discussion

RichardLinderma's avatar
1 year ago
Solved

Dynamic Formatting - Tooltips for specific instances

I'm currently working on a report in Power BI, and there is a button on the report. I want to perform formatting on this button so that., when the column hierarchy[source] equals either "company1" or "company2", the tooltip reads "Follow this link", and otherwise the tooltip doesn't appear. Does anyone know how to do this?

  • Ritaf1983's avatar
    Ritaf1983
    1 year ago

    Hi RichardLinderma 
    Something like this :

    This is based on your requirement that content should appear only when the relevant category is selected.
    My UX-informed recommendation is to always display guiding content, and in empty states, show a message like:
    'No additional information available for category X.'
    This provides the user with a clear sense of where they are and avoids confusion like
    'Maybe I didn’t click correctly"
    The pbix with the example is attached.

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

3 Replies

  • Hi RichardLinderma 

    Unfortunately, you'll need to consider a different approach for two main reasons:

    1. Tooltips in Power BI aren't clickable – you can't actually navigate anywhere by clicking a tooltip.

    2. Conditional tooltips don't exist – while you can dynamically change the content of a tooltip using a measure, you can't control whether it appears or not based on a condition.

    So instead of relying on a tooltip to guide the user to a link, you might want to consider an alternative:

    • If this is in a table or matrix, consider displaying the link itself as a value when hierarchy[source] is "company1" or "company2".

    • If it's in a visual or card, you could place a nearby text box or card that dynamically shows "Follow this link" only when the condition is met.

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

    • RichardLinderma's avatar
      RichardLinderma
      Helper I

      Hi Rita, could I learn more about the second alternative you suggested?

      • Ritaf1983's avatar
        Ritaf1983
        Super User

        Hi RichardLinderma 
        Something like this :

        This is based on your requirement that content should appear only when the relevant category is selected.
        My UX-informed recommendation is to always display guiding content, and in empty states, show a message like:
        'No additional information available for category X.'
        This provides the user with a clear sense of where they are and avoids confusion like
        'Maybe I didn’t click correctly"
        The pbix with the example is attached.

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