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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

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
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.