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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

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
July 2025 community update carousel

Fabric Community Update - July 2025

Find out what's new and trending in the Fabric community.

July PBI25 Carousel

Power BI Monthly Update - July 2025

Check out the July 2025 Power BI update to learn about new features.