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
kalkhudary
Helper IV
Helper IV

Conditional Formatting based on one column that contains string value

I have a Matrix table that includes multiple projects with their Project Code, I want to apply on the project code column conditional formatting where If I have a blank in one of the cells, it will return yellow which means code missing and if the code is there, then keep background white. Can someone help me DAX a formula that would be applicable to this case. Much appreciated. Sounds simple but my mind freezed.

 

Project Project Code 
Project AWS-23145
Project B 
Project CAB-19377
Project DFX-868599
Project E 
Project FPO-37383
Project GNU-93939

 

@OwenAuger

Any thoughts on best solution.

1 ACCEPTED SOLUTION
vicky_
Super User
Super User

Create a measure, and format based on that:

formatting = IF(SELECTEDVALUE('Table'[Project Code]) = "", 1). 
vicky__0-1692314725729.png

 

View solution in original post

2 REPLIES 2
kalkhudary
Helper IV
Helper IV

Can you please explain steps.

vicky_
Super User
Super User

Create a measure, and format based on that:

formatting = IF(SELECTEDVALUE('Table'[Project Code]) = "", 1). 
vicky__0-1692314725729.png

 

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.