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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
arafieilatiani
Regular Visitor

Conditional formatting of months columns by quarter

Hello everyone!

 

I have created a Line and Stacked Column chart as per the below picture, and I would like to do the conditional formatting for each Quarter (3 months) to be a specific color. For example, Jan, Feb, and Mar should be Green. Apr, May, and Jun should be Red, ...

 

Can someone help me to make this by a DAX formula?

I tried to do it by choosing the field type value conditional formatting, but I could not choose any field (It will be Null even when I chsoose a filed).

Thank you!

 

Months Color Formatting.JPG

1 ACCEPTED SOLUTION
arafieilatiani
Regular Visitor

Thank you Alexander!

But I finally found an easier way to do this!

Please check the below:

arafieilatiani_0-1684934119314.png

 

And here is the result:

arafieilatiani_1-1684934169750.png

 

Thank you!

View solution in original post

2 REPLIES 2
arafieilatiani
Regular Visitor

Thank you Alexander!

But I finally found an easier way to do this!

Please check the below:

arafieilatiani_0-1684934119314.png

 

And here is the result:

arafieilatiani_1-1684934169750.png

 

Thank you!

barritown
Super User
Super User

Hi @arafieilatiani,

The idea would be to split your data in two parts - "blue" and "red", with the help of a calculated column for example:

barritown_0-1684930897672.png

Then add them to your stacked column chart and set up the colors for each sequence:

barritown_1-1684931072386.png

Best Regards,

Alexander

My YouTube vlog in English

My YouTube vlog in Russian

 

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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