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

Score big with last-minute savings on the final tickets to FabCon Vienna. Secure your discount

Reply
inglexjc
Post Patron
Post Patron

Getting certain text to show in Red

I'm wanting the text (Letter Waived) to show in RED.

inglexjc_0-1671050295559.png

 

I've gone to the Column name Description and went to Conditional formating and choose font color.

inglexjc_1-1671050350884.png

 

But all options have to do with Vaules and counting. not with the Text.

inglexjc_2-1671050389194.png

 

How to I get the Text or even the background of that text box to show a different color?

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @inglexjc 

You can use CONTAINSSTRING() function

e.g 

 

Measure 4 = IF(CONTAINSSTRING(SELECTEDVALUE('Table'[Description]),"Letter Waived"),"red","white")

 

 

 

Then put it to the conditional formatting

vxinruzhumsft_0-1671088526553.png

Output

vxinruzhumsft_1-1671089068513.png

 

Please refer to the following link to know more about  CONTAINSSTRING() function:

CONTAINSSTRING function (DAX) - DAX | Microsoft Learn

 

Best Regards!

Yolo Zhu

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

 

 

 

View solution in original post

3 REPLIES 3
Anonymous
Not applicable

Hi @inglexjc 

You can use CONTAINSSTRING() function

e.g 

 

Measure 4 = IF(CONTAINSSTRING(SELECTEDVALUE('Table'[Description]),"Letter Waived"),"red","white")

 

 

 

Then put it to the conditional formatting

vxinruzhumsft_0-1671088526553.png

Output

vxinruzhumsft_1-1671089068513.png

 

Please refer to the following link to know more about  CONTAINSSTRING() function:

CONTAINSSTRING function (DAX) - DAX | Microsoft Learn

 

Best Regards!

Yolo Zhu

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

 

 

 

vicky_
Super User
Super User

You will need to create a measure for your description (maybe use CONTAINSSTRING as the filter condition?), and then use that to format your table. This article on RADCAD should be a good starting point: https://radacad.com/dax-and-conditional-formatting-better-together-find-the-biggest-and-smallest-num...

Okay but reading the article shows numbers not text, how do I get the text to be a different color?

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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