Forum Discussion

EugenioProlog's avatar
EugenioProlog
Helper III
6 months ago
Solved

filter through context on tooltip

I have a line graph that has a tooltip and I want the tooltip to reflect the selected value of the line that I am hovering over. But when I look at the tooltip, it is not receiving the filter of the item that I am hovering. 

here is the metric I am using to debug:

Debug - Kit no Tooltip =
SELECTEDVALUE ( dim_kits[kit_name], "No Filtered Kit on Context" )



Below is attached my .pbix file:
https://drive.google.com/file/d/1kEuHUcgH9vpIwFy3iiPoVO8zSjS16vM5/view?usp=sharing

  • Hey, EugenioProlog ,

    I did check your file; the reason is that the legend is not being filtered at all when hovering. As the filtered line doesn't act as a category for some reason. So you're getting both values, Kit 1 and Kit2, therefore you get the alternative text.

     

    Not sure how to fix it with lines, but it works with columns. (Can't share screenshot for some reason, but just copy the visual as column chart and it works).

     

3 Replies

  • Hey, EugenioProlog ,

    I did check your file; the reason is that the legend is not being filtered at all when hovering. As the filtered line doesn't act as a category for some reason. So you're getting both values, Kit 1 and Kit2, therefore you get the alternative text.

     

    Not sure how to fix it with lines, but it works with columns. (Can't share screenshot for some reason, but just copy the visual as column chart and it works).

     

    • EugenioProlog's avatar
      EugenioProlog
      Helper III

      Wow, that is indeed bugged, I changed to bar chart and it worked fine. I wanted to do with line chart but I guess I'll have to settle for bar chart. Thank you!

  • There are a few things that could cause this.

    - Check the model is correct by placing the same visual as your tooltip on the page, and click on the chart to see if the 'tooltip' visual correctly changes. If not, you need to sort out the relationships in your model.

     

    - Check Tooltip Fields include the dim_kits[kit_name] in the Tooltip field well

     

    - Check conflicting slicers