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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Anonymous
Not applicable

how do i colored last month columns by default in clustered column ?

hi dears

 

i have a clustered column visual

i need to know how do i make the last month value to be colored with a different color than the previous months?

 

i.e. we are on ocotober so i need september to be colored with a different color so the one who is seeing the visual will be able to notice the last month value

 

you may refer to the below example

 

angle_Fbi_1-1730211702282.png

 

 

1 ACCEPTED SOLUTION
SamWiseOwl
Super User
Super User

Create a measure to control the colours:
Colour Measure = If( month(lastdate(table[date column]) )= Month(today()) -1, "Green")

You could also use Calculate(Month(lastdate(table[date column]), all(table[date column)) instead of today()

 

Assign this measure to the column colour under Field value.

SamWiseOwl_0-1730212225036.png

 


If you are happy with this answer please mark as a solution for others to find !

Kudos are always appreciated! Check out our free Power BI video courses.

View solution in original post

7 REPLIES 7
SamWiseOwl
Super User
Super User

Create a measure to control the colours:
Colour Measure = If( month(lastdate(table[date column]) )= Month(today()) -1, "Green")

You could also use Calculate(Month(lastdate(table[date column]), all(table[date column)) instead of today()

 

Assign this measure to the column colour under Field value.

SamWiseOwl_0-1730212225036.png

 


If you are happy with this answer please mark as a solution for others to find !

Kudos are always appreciated! Check out our free Power BI video courses.

Anonymous
Not applicable

thank you for your response if could help me with the correct measure ( im new in powerbi )

 

im using ( month name ) for X axis the below is my visual

angle_Fbi_1-1730214068925.png

 

 

the below is my table

 

angle_Fbi_0-1730214043178.png

 

if you can write for me the correct measure i will be greatful 

Hi @Anonymous 

Colour Measure = If( selectedvalue(Mail[Month])= Month(today()) -1, "Green")

 


If you are happy with this answer please mark as a solution for others to find !

Kudos are always appreciated! Check out our free Power BI video courses.

Anonymous
Not applicable

god bless you sam

 

last question ..

how do i use this measure?  should i keep the measure in the tooltips of the visual which i want?

or should i keep it on a filter visual? 

Hi @Anonymous 

 

You can assign this field to the column in your visual.

Select the column chart.

Go the the Visualisation pane and choose the paint brush icon.

Scroll to Column and expand to the Color setting.

Click the Fx symbol.

Change the drop down to Field Value.

Select the measure you created.

SamWiseOwl_0-1730284633441.pngSamWiseOwl_1-1730284657196.png

 


If you are happy with this answer please mark as a solution for others to find !

Kudos are always appreciated! Check out our free Power BI video courses.

Anonymous
Not applicable

hi brother the measure showing error 

 

angle_Fbi_0-1730218883331.png

 

Colour Measure = If( selectedvalue(Mail[Month])= Month(today()) -1, "Green")

 

There was an extra bracket after Mail[Month] try the above!


If you are happy with this answer please mark as a solution for others to find !

Kudos are always appreciated! Check out our free Power BI video courses.

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

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!

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