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

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! 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
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

60 days of Data Days Carousel

Data Days 2026

Join Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

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.

Top Solution Authors