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

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more

Reply
ladeko
Regular Visitor

Conditional Formatting using 2 Text Columns

I would like to create a DAX formula that will compare one column to another. I have a table. Column 1 has 2 items:  It will either say "Reported Timely" OR "Not Reported Timely". If the item says "Not Reported Timely" then I want to highlight the 2nd column in YELLOW if the 2nd columns shows as blank. The second column is "The reason it was not reported timely". 

 

Column 1 Name = Eform Reported Timely by Sumbitter

Column 2 Name = Submitter Timeliness Explained

 

THIS IS WHAT I NEED IT TO DO:

  • I only need the ones highlighted in YELLOW if the 1st column says "Not Reported Timely" AND the 2nd column is blank.
  • So if column 1 says "Not Reported Timely" AND column 2 is BLANK, then I need the background in column 2 to be highlighted in the color YELLOW.

Truly appreciate any assistance you can provide. 😊

 

ladeko_0-1697669116697.png

 

1 ACCEPTED SOLUTION
Dangar332
Resident Rockstar
Resident Rockstar

HI , @ladeko 

Follow below steps

make mesure 

result =
IF(max('condition'[Column1])="b"&& max('condition'[Column2])= BLANK(),"#FFFF00")
 
1. go to column 2 right click and choose conditional formating shown as below 
Dangar332_0-1697698352148.png
 
2. choose formate style value to field value and .
 3. choose result(measure name ) from field should we based on 
and press ok you get your answer 
Dangar332_1-1697698417997.png

 

here the same scenario but with different data

Dangar332_3-1697699011208.png

 

Dangar332_2-1697698961875.png

 

for more related to this topic visit HERE 

 

If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.

View solution in original post

2 REPLIES 2
Dangar332
Resident Rockstar
Resident Rockstar

HI , @ladeko 

Follow below steps

make mesure 

result =
IF(max('condition'[Column1])="b"&& max('condition'[Column2])= BLANK(),"#FFFF00")
 
1. go to column 2 right click and choose conditional formating shown as below 
Dangar332_0-1697698352148.png
 
2. choose formate style value to field value and .
 3. choose result(measure name ) from field should we based on 
and press ok you get your answer 
Dangar332_1-1697698417997.png

 

here the same scenario but with different data

Dangar332_3-1697699011208.png

 

Dangar332_2-1697698961875.png

 

for more related to this topic visit HERE 

 

If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.

And you are a genius!!! Thank you. You just helped me become more productive at work. I can now take a manual, tedious Excel process that would take me about 6 hours and now turn that process into literally 5 minute refresh using Power BI and the measure you gave me. THANK YOU @Dangar332 

Helpful resources

Announcements
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

60 days of Data Days Carousel

Data Days 2026

Join Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.