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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
jcastr02
Post Prodigy
Post Prodigy

Conditional Formatting Yes or No; with Text Column

How to add conditional formatting to a matrix when the value is No (color it light red)?  The column where this is pulling from is a TExt column so I only see ability to do conditional formatting is a value(number)  - any help is appreciated.

 

Screenshot 2021-10-22 104208.png

6 REPLIES 6
Anonymous
Not applicable

Hi @jcastr02 ,

I created a sample pbix file(see attachment), please check whether that is what you want.

1. Create a measure as below to get the color formatting

Conditional formatting = IF ( SELECTEDVALUE ( 'Table'[Acknowledged?] ) = "No", "Red" )

2. Configure conditional formatting just as shown in below screenshot: select the matrix and navigate to Fields pane. Click on the drop-down icon to the right of field Acknowledged and select "Conditional formatting" --> "Background color"

yingyinr_1-1635152699189.png

Best Regards

Hi @Anonymous  this worked however it only works when I filter for the completed ones, see first screen shot - reds dont' show up but when i filter for N then it works..

Screenshot 2021-10-22 104208.pngScreenshot 2021-10-25 153959.png

Anonymous
Not applicable

Hi @jcastr02 ,

Could you please provide some simple sample data in your model(exclude sensitive data) which involved in your matrix visual in order to make troubleshooting? Later I will check why it happen... Thank you.

Best Regards

Ashish_Mathur
Super User
Super User

Hi,

Share the link from where i can download the PBI file.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/
Anonymous
Not applicable

Hi  

  Create a measure based on your text column and use that for conditional format.

 

Ex:

m_automated_fill = IF(MAX('Table1'[Automated_Fill])="Yes" , 1 , 2 )

 

Then , in condiotion format , format the text column based on this measure. Green if its 1(Yes), and red if its 2 (No).

 

Hope this helps.

 

Thanks
Raj

Hello @Anonymous I created the measure and set cond. formatting as below but nothing is occuring any ideas on what I'm doing wrong?Screenshot 2021-10-22 104208.png

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

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.

Top Solution Authors