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

Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now

Reply
nataliesmiy1357
Helper IV
Helper IV

Conditional Formatting

Hello!  I am having trouble with my conditional formatting.  I have this one table, and wanting to make the columns all in the same color based on the level.

 

Attached is my photo for reference - I want the whole column to be a specific color based on the Level number.  If the level number is 4, I want the background color to be: #027108.  If the level number is 3, I want the background color to be: #1BCA50.  For 2: #A0D1FF, and for 1: #F7244E. Then for 0 - I want it to be the normal white.

 

Thanks in advance for your help!  I'm not sure how to do this!

nataliesmiy1357_0-1646244601695.png

 

1 REPLY 1
amitchandak
Super User
Super User

@nataliesmiy1357 , Create a measure like this and use that in conditional formatting using field value option

Switch(Max(Table[Level Number]) ,
4,"#027108",
3, "#1BCA50",
2,"#A0D1FF",
1, "#F7244E",
"white"
)

How to do conditional formatting by measure and apply it on pie? : https://youtu.be/RqBb5eBf_I4

 

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.