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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
michellesogge
Frequent Visitor

Alternating Column Row colors based on Year

Hello, 

I am trying to create a table that clearly shows which data points fall under different years via color-coding. I currently have a matrix set up with the following:

michellesogge_0-1678740764736.png

What I would like to do is alternate colors based on the Year. For example, both the "%" and "#" values for 2019 and 2021 would be a light grey background throughout the entire matrix, while the values for 2018, 2020, and 2022 would be white. Is there a way to do this?

2 REPLIES 2
SivaMani
Resident Rockstar
Resident Rockstar

@michellesogge, You can have a format by column, In your case, technically year is not a column - it is just values displayed in that format. You can format visuals by "%" and "#" values.  But it will apply for all years.

 

SivaMani_0-1678743282591.png

 If you have the Year as rows, you could try conditional formatting.

Ah, I see! Yes I had played around with that but ran into the problem you identified above. So there isn't a way to have it only do that for alternating years? Unfortunately there are too many current row values (I only showed some of them here) to have the years be switched to rows.

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