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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

Reply
Anonymous
Not applicable

Conditional colour formatting

Hi all,

 

I am trying to put together a monthly report for a customer that will be automatically updated at the start of every month with the the data for:

1. the previous month (e.g. August 2023)

2. The month preceding that month (e.g. July 2023)

3. The same month previous year of the previous month  (e.g. August 2022)

 

One thing that i am struggling with each month in the automation process is the colours of the columns in some of the charts.

 

screenshot for help with colours for bespoke report.pngAs the above photo shows, the latest month column should be blue and the previous month should be black. However, when the new month begins and the data is updated the colour of the column changes also automatically. 

 

I believe that the reason for this is because the previous months report (July 2023) was set as July being the blue column and therefore Power BI assumes July should stay blue. 

 

However i want the latest month to always be blue, the previous month to be black and the previous year to be orange.

 

Please could someone advise how to do this in my report.

 

I have also attached two more screenshots of the visualisations column in case that helps to explain the situation more clearly too.

 

screenshot of colours tab.pngscreenshot of visualisation tab.png

2 REPLIES 2
mussaenda
Super User
Super User

Hi @Anonymous ,

 

It is better if you will use the year as legend and set the colors instead of using the months

Anonymous
Not applicable

Hi @mussaenda 

 

I need to show each month seperately because the customer has asked for this to compare their data for the latest month to the previous month and previous year for the % changes in visitor numbers.

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

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