Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Gaurav_84
Helper I
Helper I

Change in Data colours

Hi Experts, Is it possible to change the data colours based on change in Data numbers. For example i am preparing bar chart where Job "A" have total budget of $10000 the bar is of Green colour. Can we change bar coulor if there is change in amount. For exmple if amount is in negative then bar should turn to "RED" & amount is still in positive but less than $10000 colour should be Yellow.

Gaurav_84_0-1603088520214.png

 

Regards

Gaurav

3 REPLIES 3
amitchandak
Super User
Super User

@Gaurav_84 , Only if there is not legend and only one measure  used you can try conditional formatting using a color measure with field value option

 

color measure =

Switch( True(),
[Budget] >= 10000, "green"
[Budget] < 0, "red",
"Yellow"
)

 

Refer
https://radacad.com/dax-and-conditional-formatting-better-together-find-the-biggest-and-smallest-num...
https://docs.microsoft.com/en-us/power-bi/desktop-conditional-table-formatting#color-by-color-values

Yes, you can use conditional formatting. This should help you. 

https://exceleratorbi.com.au/?s=Conditional



* Matt is an 8 times Microsoft MVP (Power BI) and author of the Power BI Book Supercharge Power BI.
Anonymous
Not applicable

@Gaurav_84 - You can use conditional formatting to achieve your requirement. Check the below link

https://docs.microsoft.com/en-us/power-bi/visuals/service-tips-and-tricks-for-color-formatting

 

Appreciate your kudos!! Mark this post as solution if this helps.

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.