Forum Discussion

kalkhudary's avatar
kalkhudary
Icon for Helper IV rankHelper IV
3 years ago
Solved

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.

  • Create a measure, and format based on that:

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

     

2 Replies

  • Create a measure, and format based on that:

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