Forum Discussion

gelQ0's avatar
gelQ0
Frequent Visitor
6 years ago

Adding units to a tooltip

Hello,

 

I'm trying to make my graphs as clear as possible. To do so, I'd like to display units inside the tooltip for both the plotted value and extra fields as can be seen here : https://ibb.co/dkXGwfz .

 

If I use the format function to add the unit, I can alter the extra fields, but my measure itself becomes a text and thus cannot be plotted anymore.

 

Any ideas ?

3 Replies

  • gelQ0 ,

     

    Add Unit column in Tooltip property of that charts. Make sure your unit is in whole number.

     

    Don't forget to hit Thumbs up and accept this as a solution if you find it helpful! 

    • gelQ0's avatar
      gelQ0
      Frequent Visitor

      Thanks, but this is not very easy to read, especially with multiple units.

  • v-lili6-msft's avatar
    v-lili6-msft
    Community Support

    HI gelQ0 

    To my knowledge, the best way is use format function to add the unit, and measure itself will become a text.

    So you could use the format to add a measure with unit based on basic measure.

    For example:

    New measure=FORMAT(<Your current measure>,"result")

    Now, use this New measure in the visual, and use <Your current measure> when you plot in other.

     

    Regards,

    Lin