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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more

Reply
Ranjeet_1989
Regular Visitor

Conditional Formatting on column chart

Hi,

I'm creating column chart in power bi and want apply conditional formating on both bars profits and Sales.

Like if Profit>=3000 then Green, Profit>=1000 then Amber, Profit <1000= Red

Like if Sales>=4000 then Green, Sales>=3000 then Amber, Sales<1500= Red.

There is no option on column formating tab.

Please help me on this.

Ranjeet_1989_0-1686823270454.pngRanjeet_1989_0-1686825493922.png

 

 

2 ACCEPTED SOLUTIONS
Ritaf1983
Super User
Super User

Hi @Ranjeet_1989 

Conditional formatting is not supported by multiple columns in the category.

It is also not effective in terms of data visualization.
Beyond that, it is difficult to compare anything beyond each pair individually,
We burden the user with another type of decoding by using conditional formatting that allows both sales and profit to appear in the same color.

Alternatively, you can use the table graph in the picture, which allows you to compare cities, compare sales and profits, and alert you to the circle's values that you need.

Ritaf1983_0-1687156952411.png

 

There are quite a few steps in creating, so I am attaching a link where you can download the file and follow my steps.
Link to a sample file 

If this post helps, then please consider Accepting it as the solution to help the other members find it more quickly

Regards,
Rita Fainshtein | Microsoft MVP
https://www.linkedin.com/in/rita-fainshtein/
Blog : https://www.madeiradata.com/profile/ritaf/profile

View solution in original post

Anonymous
Not applicable

HI @Ranjeet_1989,

I test with your sample data but can't apply conditional color formatting on column chart with multiple value fields.
Perhaps you can take a look at Ritaf1983 's suggestion or try to manually plot the graph based on condition on script base visuals. (e.g. R, Python visuals)

Create Power BI visuals using R - Power BI | Microsoft Learn

Create Power BI visuals using Python in Power BI Desktop - Power BI | Microsoft Learn

Plot with conditional colors based on values in R - Stack Overflow
Regards,

Xiaoxin Sheng

View solution in original post

4 REPLIES 4
Ritaf1983
Super User
Super User

Hi @Ranjeet_1989 

Conditional formatting is not supported by multiple columns in the category.

It is also not effective in terms of data visualization.
Beyond that, it is difficult to compare anything beyond each pair individually,
We burden the user with another type of decoding by using conditional formatting that allows both sales and profit to appear in the same color.

Alternatively, you can use the table graph in the picture, which allows you to compare cities, compare sales and profits, and alert you to the circle's values that you need.

Ritaf1983_0-1687156952411.png

 

There are quite a few steps in creating, so I am attaching a link where you can download the file and follow my steps.
Link to a sample file 

If this post helps, then please consider Accepting it as the solution to help the other members find it more quickly

Regards,
Rita Fainshtein | Microsoft MVP
https://www.linkedin.com/in/rita-fainshtein/
Blog : https://www.madeiradata.com/profile/ritaf/profile
Anonymous
Not applicable

Hi @Ranjeet_1989,

Can you please share a pbix or some dummy data that keep the raw data structure with expected results? It should help us clarify your scenario and test to coding formula.

How to Get Your Question Answered Quickly  

Regards,

Xiaoxin Sheng

CitySalesProfitMonth
Delhi70001500January
Mumbai56001400February
Kolkata6500900March
Chennai2800600April
Bangalore45001800May
Pune3000800June
Delhi1500400July
Mumbai1400700August
Kolkata900300September
Chennai600350October
Bangalore1800450November
Pune800100December
Delhi2000650January
Anonymous
Not applicable

HI @Ranjeet_1989,

I test with your sample data but can't apply conditional color formatting on column chart with multiple value fields.
Perhaps you can take a look at Ritaf1983 's suggestion or try to manually plot the graph based on condition on script base visuals. (e.g. R, Python visuals)

Create Power BI visuals using R - Power BI | Microsoft Learn

Create Power BI visuals using Python in Power BI Desktop - Power BI | Microsoft Learn

Plot with conditional colors based on values in R - Stack Overflow
Regards,

Xiaoxin Sheng

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

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.

Top Solution Authors