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
CLANG10
Helper I
Helper I

Apply alternate colour to column base on odd and even months

 

CLANG10_0-1667471147391.png

Hi, how do i create a function to auto apply alternate colour to column base on odd and even months? 

1 REPLY 1
Bifinity_75
Solution Sage
Solution Sage

Hi @CLANG10 , create a calculate column:

MONTH = MONTH(Table_1[Date])

- Create this measure:

Color = IF(MOD(MAX(Table_1[MONTH]),2)=0,"green","red")

- Insert the measure in Format, Columns, conditional formating:

Bifinity_75_0-1667495868787.pngBifinity_75_1-1667495905731.png

 

Best regards

 

 

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

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

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.