Forum Discussion
Dynamic tooltip image based on pie chart element
- 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
Please see this guyinacube video
Hi, unfortunately the solution in the video is not really working as my tooltip is text value dependent rather than amount or conditional formating.
- Deku1 year agoSuper 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