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...
  • 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