Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
8 years ago

Dynamic colors in graphics

Personal I need to find a way to be able to manipulate the colors of the data in a dashboard, for example in a custom measurement or column put a condition that if an information reaches a certain value the color of the data is changed in the chart or table, this is possible ?

 

an example with RGB, column = calculate (if (sum (table a [column a]) = 5, "10,15,24", "99,99,99"))

 

or in hexadecimal, column = calculate (if (sum (table a [column a]) = 5, "455278", "999999"))                    

 

or suddenly that does not have to be in the DAX language, there could be some graphic or function of the power bi that would allow this

5 Replies

  • Hi Anonymous,

     

    The conditional formating of a measure/value is only possible on the tables, however I add the same question when regarding a comparision on budget versus actuals and my solution was to use measure to calculate the values differences from actuals to budget and use a stacked column chart to show the two differente colours:

     

     

    In table you need to use the condittional formatting options:

     

     

    Regards,

    MFelix

    • Anonymous's avatar
      Anonymous
      Not applicable

      MFelix

      I understood, this will help me, but the ideal for me at that moment is to be able to create a measure in which I already applied the conditions of formatting.

  • v-yulgu-msft's avatar
    v-yulgu-msft
    Microsoft Employee

    Hi Anonymous,

     

    Currently, it is not supported to set data colors based on specific value. As MFelix mentioned above, the workaround is to consider conditional formatting. In that case, you can specify the color for maximum and minimum values, then, all data cells will be filled with gradients.

     

    Besides, someone has submitted this feature here, please vote it up.

     

    Best regards,
    Yuliana Gu

    • Anonymous's avatar
      Anonymous
      Not applicable

      v-yulgu-msft

      Okay, I voted for the idea, I hope Microsoft will upgrade power bi with this possibility as soon as possible.

      • v-yulgu-msft's avatar
        v-yulgu-msft
        Microsoft Employee

        Hi Anonymous,

         

        Thanks for your feedback.

         

        Regards,
        Yuliana Gu