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

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



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

Proud to be a Datanaut!




v-yulgu-msft Super Contributor
Super Contributor

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.

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.

Highlighted
v-yulgu-msft Super Contributor
Super Contributor

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
Ask Amanda Anything Q&A

Ask Amanda Anything Q&A

Learn the answers to some of the questions asked during the Amanda Triple A event.

October 2019 Community Highlights

October 2019 Community Highlights

October was a busy month in the community. Read the recap article to learn about some of the events and content.

New Solution Badges

New Solution Badges

Two waves of brand new solution badges are coming! Read the article for more information on our new community badges.

Analytics in Azure virtual event

Analytics in Azure virtual event

Experience a limitless analytics service built to ingest, prep, manage, and serve data for immediate use in Power BI.

Users Online
Currently online: 309 members 2,982 guests
Please welcome our newest community members: