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

Power BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.

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
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

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