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

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more

Reply
Thulasiram
Helper II
Helper II

Column chart conditional format

Dear all

I have created a Column chart with Dates as "X" axis and some values on "Y" axis.

I would like to format the color of the columns based on date.  For example,

if the dates are below 10th of the month, it is green and if it beyond 10th, as red.

 

When I got to format pane, under column and go the conditional formatting and select

Rule and select the Calender[date], it shows as "Cound of date".  So I am not able to

define dates before and beyond 10th.

 

Am I doing anything wrong or is there any other way for conditional format such cases.

 

Help is much appreciated.  Thanks.

Thulasiraman

1 ACCEPTED SOLUTION
Ritaf1983
Super User
Super User

Hi @Thulasiram 
You can base the condition of formatting on the column that is not on the graph.
In your case: "Day" column :

Ritaf1983_0-1718088081126.png

Result :

Ritaf1983_1-1718088112496.png

If you don't have "Day" column you can create it :

Ritaf1983_2-1718088219399.png

Pbix with example is attached

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

2 REPLIES 2
Ritaf1983
Super User
Super User

Hi @Thulasiram 
You can base the condition of formatting on the column that is not on the graph.
In your case: "Day" column :

Ritaf1983_0-1718088081126.png

Result :

Ritaf1983_1-1718088112496.png

If you don't have "Day" column you can create it :

Ritaf1983_2-1718088219399.png

Pbix with example is attached

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

Thank you very much.  It works.

Helpful resources

Announcements
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

60 days of Data Days Carousel

Data Days 2026

Join Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Top Solution Authors