Forum Discussion

Jaskier698's avatar
Jaskier698
New Member
1 year ago
Solved

Dynamic tooltip image based on pie chart element

Hello,

 

I am looking for a way to display a  different image based on which slice of the pie chart is hovered on. I have pie chart with budget split between different campaigns and I would love to show the key visual from each campaign depending which slide is being hovered on.

I tried to do it via some guides mentioning auxillary pages but can't get it to work. It shows only 1 image regardless which part of the chart is selected.
Do you know if this approach is even possible?

Alternatively - I have a slicer with button selectors. Can I add a tooltips with a different image to the buttons that are hovered on like that: button A - Image A, button B - image B etc.

 

Thank you!

  • Deku's avatar
    Deku
    1 year ago

    If you want to have it work based off a  category in the chart. Create a table of campaigns and image links, with data type of the link set to image URL.

     

    Campaign image =

    Calculate(

    Selectedvalue( campaignImage[image URL] )

    ,treatas( { datum[campaign] }, campaignImage[image[campaign])

    )

     

    Add the measure to a visual on the tooltip. When you hover on a slice of pie the campaignImage table will be filtered to a single image URL and return the image

     

     

6 Replies

    • Jaskier698's avatar
      Jaskier698
      New Member

      Hi, unfortunately the solution in the video is not really working as my tooltip is text value dependent rather than amount or conditional formating. 

      • Deku's avatar
        Deku
        Super User

        If you want to have it work based off a  category in the chart. Create a table of campaigns and image links, with data type of the link set to image URL.

         

        Campaign image =

        Calculate(

        Selectedvalue( campaignImage[image URL] )

        ,treatas( { datum[campaign] }, campaignImage[image[campaign])

        )

         

        Add the measure to a visual on the tooltip. When you hover on a slice of pie the campaignImage table will be filtered to a single image URL and return the image

         

         

  • v-csrikanth's avatar
    v-csrikanth
    Community Support

    Hi Deku 
    Sorry for the late response. 

    Thank you for being part of the Microsoft Fabric Community.

    As highlighted by Deku , the proposed approach appears to effectively address your requirements. Could you please confirm if your issue has been resolved?
    If you are still facing any challenges, kindly provide further details, and we will be happy to assist you.

    If the above information helps you, please give us a Kudos and marked the Accept as a solution.
    Best Regards,
    Community Support Team _ C Srikanth.

  • v-csrikanth's avatar
    v-csrikanth
    Community Support

    Hi Jaskier698 
    It's been a while since I heard back from you and I wanted to follow up. Have you had a chance to try the solutions that have been offered?
    If the issue has been resolved, can you mark the post as resolved? If you're still experiencing challenges, please feel free to let us know and we'll be happy to continue to help!
    Looking forward to your reply!

    Best Regards,
    Community Support Team _ C Srikanth.

  • v-csrikanth's avatar
    v-csrikanth
    Community Support

    Hi Jaskier698 

    We haven't heard from you since last response and just wanted to check whether the solution provided has worked for you. If yes, please Accept as Solution to help others benefit in the community.
    Thank you.

    If the above information is helpful, please give us Kudos and mark the response as Accepted as solution.
    Best Regards,
    Community Support Team _ C Srikanth.