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

Did you hear? There's a new SQL AI Developer certification (DP-800). Start preparing now and be one of the first to get certified. Register now

Reply
CHARLEA1
Frequent Visitor

Conditional Formatting on Table Visual

Hi there, 
I'm having an issue with conditionally formatting my table visual on powerbi. I have made a dummy set image to describe the issue I'm having: 
powerbi example.png

Basically, I have conditionally formatted the first column based off of the value in the second (ie colour background orange if no. = 1). For some reason, it does not conditionally format the rows that are missing some or all of the data in the two data columns.

 
Important to note: When conditionally formatting, I believe I have the base the formatting off of the sum of the no. field (as there are no options to not summarise), but in the table visual for the no. column I have to format it to not summarize or else the 1 for example3 and example4 will disappear. 

When I delete data columns from my visual it formats correctly i.e.
powerbi example 2.png

 

Thanks in advance!
Ashling

2 REPLIES 2
amitchandak
Super User
Super User

@CHARLEA1 , This can work in table visual not in the matrix.

 

You can use rule based conditional formatting

 

If No is measure use [No] else use max(Table[No])

 

You can also create a measure

Switch([No] // or max(Table[No]) ,

1, "Orange", "White")

 

 

Use this measure in conditional formatting using field value option

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

Hi Amit, 
Yes I did use a table visual not matrix (perhaps you are confused by the image formatting, I made up the example on excel). 
I have done rule based and created a measure and done field based although it still doesn't seem to colour the rows that don't have data in the corresponding columns.

 

Thanks,

Ashling

Helpful resources

Announcements
April Power BI Update Carousel

Power BI Monthly Update - April 2026

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

Fabric SQL PBI Data Days

Data Days 2026 coming soon!

Sign up to receive a private message when registration opens and key events begin.

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.