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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

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

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube
MattAllington
Community Champion
Community Champion

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.
I will not give you bad advice, even if you unknowingly ask for it.
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
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.