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

Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM. Register now.

Reply
frknklcsln
Helper II
Helper II

how to apply conditional formatting for text values in a table

Hi,

 

I have a table like below:

 

frknklcsln_0-1667564787407.png

 

I would like to color format the blank values as red. I know how to do this with numeric values but I couldn't find for the text datatype columns.

 

Thank you.

7 REPLIES 7
Anonymous
Not applicable

Hi  @frknklcsln ,

What format your measure is, only when it is text format, you can choose, if it is integer, you can't put it in.

Text =
IF(
MAX('Table'[ABC])= BLANK(),"yellow","red")

 

vyangliumsft_0-1669169245596.png

vyangliumsft_1-1669169245596.png

integer =
IF(
MAX('Table'[ABC])= BLANK(),1,0)

vyangliumsft_2-1669169245597.png

 

 

Best Regards,

Liu Yang

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

Anonymous
Not applicable

Hi @frknklcsln,

For a selected column--open conditional formatting-- background color--then select field value--apply measure.

SanikaT_0-1667795292434.png

 

Thanks.

Thats not working. I cannot select the measure for the What field should we based this on? area.

 

frknklcsln_0-1667990209290.png

 

Anonymous
Not applicable

Hi,
Try using this DAX  for blanks.

Title =
VAR Name1 = IF(SELECTEDVALUE('Sheet1'[Column]) = Blank(), True, False)
RETURN
SWITCH(
TRUE(),
Name1 , "#CD5C5C")
 
Thanks.

Hi @Anonymous , thanks for the response.

 

Is this a measure or a calculated column?

Anonymous
Not applicable

Hi @frknklcsln it is a measure

@Anonymous , second question,

 

how can I apply this after the dax? can you show me in screenshots?

 

much appreciated

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

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.