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

How to color a specify column in matrix/table

Dear all, 

 

This is how my matrix looks like. I would like to color the column "2C" always, no matter what the value is.

 

Conditional formatting only permits to apply based on inventory value (the numbers you see)

 

Appreciate your help. 

javieezy_0-1620421160918.png

 

1 ACCEPTED SOLUTION
v-kkf-msft
Community Support
Community Support

Hi @javieezy ,

 

Create measure:

color = IF(MAX('Table'[Block]) = "2C", "red")

 

Then set background color based on "color" field in advanced contrals.

 

image.pngimage.png

 

image.png

If the problem is still not resolved, please provide detailed error information or the expected result you expect. Let me know immediately, looking forward to your reply.

Best Regards,
Winniz

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

3 REPLIES 3
v-kkf-msft
Community Support
Community Support

Hi @javieezy ,

 

Create measure:

color = IF(MAX('Table'[Block]) = "2C", "red")

 

Then set background color based on "color" field in advanced contrals.

 

image.pngimage.png

 

image.png

If the problem is still not resolved, please provide detailed error information or the expected result you expect. Let me know immediately, looking forward to your reply.

Best Regards,
Winniz

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

@v-kkf-msft 
i tried same way for matrix data of mine and conditional formating is no longer valid if we expand the data. kindly help me out

Re: conditional formatting in matrix data - Microsoft Power BI Community


https://drive.google.com/file/d/1N8_8G0EGT0TLwvi1FeAJgD0AQ-WUK_gC/view?usp=sharing

dkaushik
Resolver II
Resolver II

Hi @javieezy ,

 

This can be achieved by using "Field Formatting". Make to you turn on "Apply to Header" and select whatever color you want as font and background.

dkaushik_0-1620425157832.png

 

Please mark as solution and give Kudos is it helps you.

 

Thanks,

Dheeraj

Helpful resources

Announcements
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!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

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