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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

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
Super User
Super User

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
Super User
Super User

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
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

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