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
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
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