Forum Discussion

olimilo's avatar
olimilo
Icon for Post Prodigy rankPost Prodigy
8 years ago
Solved

Dynamic Tooltip on bar charts

Using the following data structure, is it possible to have a dynamic tooltip for each column of my bar chart?

 

NameSystem UpdateQC CheckAccomplishmentCommunication
A3323
B3433
C2133
D2223
E4323
F4233
A3323
B1133
C2124
D3333
E3423
F2433

 

I will be averaging those scores and placing the four columns as Value fields on a bar chart. The content of the tooltip should be the one on the table beside the chart. In the System Update, when the user hovers that bar, the tooltip should say "Needs improvement" (and so on). Is this possible?

 

  • Hi olimilo,

    You can create 4 measure for four categories, and create a card visual for each category. We can't use measure in text box, so we display measure in card visual. If you create a measure for System update, please use the similar sturcture formula.

    description=IF(AVERAGEX(FILTER(Table,Table[category]=System update),Table[scores])<3.00,"Need to improved", IF(AVERAGEX(FILTER(Table,Table[category]=System update),Table[scores])<3.99,"Satisfactory","Good"))


    Best Regards,
    Angelia

7 Replies

  • v-huizhn-msft's avatar
    v-huizhn-msft
    Icon for Microsoft Employee rankMicrosoft Employee

    Hi olimilo,

    Untill now, we must put a field into tooltip or legend box to have it appeared when hover on data point in visual. It is impossible to set some description text as dynamic tooltip hwne you hover the visual. Please review and vote this idea.

     

    Regards,
    Angelia

    • olimilo's avatar
      olimilo
      Icon for Post Prodigy rankPost Prodigy

      Hi v-huizhn-msft, is there no measure that I can use to check if the average of the scores for that column would fall on a particular range? eg: if it falls on 3.00 - 3.99, it should display satisfactory, etc

      • v-huizhn-msft's avatar
        v-huizhn-msft
        Icon for Microsoft Employee rankMicrosoft Employee

        Hi olimilo,

        You can create a measure using the formula.

        description=IF(AVERAGE(Table[scores])<3.00,"Need to improved", IF(AVERAGE(Table[scores])<3.99,"Satisfactory","Good"))


        But we can't set the measure to appear when we hover any bar. We just can display the measure in a visual. When you click one bar, the measure value changes automatically.

        Best Regards,
        Angelia