cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
vitexo87 Member
Member

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 5
Super User III
Super User III

Re: Dynamic colors in graphics

Hi @vitexo87,

 

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:

 

colours.png

 

In table you need to use the condittional formatting options:

 

condi.png

 

Regards,

MFelix


Regards

Miguel Felix


Did I answer your question? Mark my post as a solution!

Proud to be a Datanaut!




Microsoft v-yulgu-msft
Microsoft

Re: Dynamic colors in graphics

Hi @vitexo87,

 

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

Community Support Team _ Yuliana Gu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
vitexo87 Member
Member

Re: Dynamic colors in graphics

@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.

Highlighted
vitexo87 Member
Member

Re: Dynamic colors in graphics

@v-yulgu-msft

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

Microsoft v-yulgu-msft
Microsoft

Re: Dynamic colors in graphics

Hi @vitexo87,

 

Thanks for your feedback.

 

Regards,
Yuliana Gu

Community Support Team _ Yuliana Gu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
Meet the 2020 Season 1 Power BI Super Users!

Meet the 2020 Season 1 Power BI Super Users!

It’s the start of a new Super User season! Learn all about the new Super Users and brand-new tiered recognition system.

Super User Challenge: Can You Solve These?

Super User Challenge: Can You Solve These?

We're celebrating the start of the New Super User season with our first ever Super User 'Can You Solve These?' challenge.

Power BI Desktop Update - February 2020

Power BI Desktop Update - February 2020

We are super excited for our update this month, as we are releasing two of our top community requests!

Power Platform Online Conference

Power Platform Online Conference

Join us for the first ever Power Platform Online Conference!

Top Solution Authors