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

Vote for your favorite vizzies from the Power BI Dataviz World Championship submissions. Vote now!

Reply
xxMiaxx
Regular Visitor

Conditional Formatting for 2 columns (one is text, one is date/time)

Hi, I was looking into the forum and was unsure if this question was answered yet. I am attempting to do conditional formatting myself, however I have not been able to achieve the desired results. I would like to potentially highlight either a cell or the entire row (which would be the better option) by background color with an IF statement. Essentially, IF the Status = 'In Process' AND Due Date = past due (so < TODAY() maybe?), that entire row is highlighted red and whoever is looking at it, knows to pay attention to the item. In theory, the rows of ID 66574 & 89541 would be red. Here's a snapshot of the table: 

xxMiaxx_0-1677689264078.png

 

3 REPLIES 3
Padycosmos
Solution Sage
Solution Sage

You can try something like this:

Colour = SWITCH(TRUE(),
SELECTEDVALUE([Status])="Released"&& [Past Due] < Today()),"Pink",   
Padycosmos
Solution Sage
Solution Sage

I believe that this solves only the 1st part of my problem. Is there a way to add an AND in the formula somewhere to color based on two column values instead of one?

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

Vote for your favorite vizzies from the Power BI World Championship submissions!

Sticker Challenge 2026 Carousel

Join our Community Sticker Challenge 2026

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

January Power BI Update Carousel

Power BI Monthly Update - January 2026

Check out the January 2026 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.