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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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