Forum Discussion

graefs's avatar
graefs
Frequent Visitor
2 years ago
Solved

Tooltip not matching data label

Hi. I am having trouble matching my custom tooltip with the value displayed in line graph.

 

 

Measure 1:

Container Count = Count(Sheet1[Container])
 
Measure 2:
Total Containers = CALCULATE([Container Count],ALLSELECTED(Sheet1[SSL]))
 
Final Measure:
% of Volume = [Container Count]/[Total Containers]
 
Sample Data:
 

 

  • Anonymous's avatar
    Anonymous
    2 years ago

    Hi graefs ,

    The value displayed by the custom tooltip is related to the value of the visualization in the page. 

    Below like this:

    Because the card visual directly contains the sum of all data objects, it appears 100% directly.

    It is recommended that you do not use a custom tooltip, a normal ttooltip can change completely with the current value.

    Best Regards,

    Xianda Tang

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

4 Replies

  • Anonymous's avatar
    Anonymous
    Not applicable

    Hi graefs ,

    The value displayed by the custom tooltip is related to the value of the visualization in the page. 

    Below like this:

    Because the card visual directly contains the sum of all data objects, it appears 100% directly.

    It is recommended that you do not use a custom tooltip, a normal ttooltip can change completely with the current value.

    Best Regards,

    Xianda Tang

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

    • graefs's avatar
      graefs
      Frequent Visitor

      I agree. I think using the default tooltip is the only way to use display the value I'm looking for. I don't like the normal tooltip as it will show the same value twice.

       

      Example:

      % of Volume  0.25

      % of Volume  0.25

  • Anonymous's avatar
    Anonymous
    Not applicable

    Looking at your sample data, aren't you dividing 12 by 12 to arrive at 1, or 100%? Do you need to use the DISTINCTCOUNT function in one of your measures?

  • Wouldn't that need to be an ALL and not an ALLSELECTED?