Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
Hi, how do i create a function to auto apply alternate colour to column base on odd and even months?
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:
Best regards
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 38 | |
| 36 | |
| 33 | |
| 30 | |
| 28 |
| User | Count |
|---|---|
| 128 | |
| 88 | |
| 79 | |
| 67 | |
| 62 |