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

Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now

Reply
akhassim
New Member

undefined

I have the following table. I need to highlight the dates red if it is in the past and the status open. If status is closed, or date is in the future. It stays black. Please help. 


Due date

Status

2023/09/04

Closed

2023/08/01

Open

2023/09/08

Open

2024/01/04

Open

 

1 ACCEPTED SOLUTION
Idrissshatila
Super User
Super User

Hello @akhassim ,

 

First create the following measure 

Date color = 
Var selected = SELECTEDVALUE('Table'[Start date]) 
return
IF( selected> TODAY() && SELECTEDVALUE('Table'[Status]) = "Open", " Red" )

 

Then go to the date field and select conditional formatting and select font color 

Idrissshatila_0-1696449658471.png

 

then select format style as field value and date color measure 

Idrissshatila_1-1696449750317.png

 

and this is the result

Idrissshatila_2-1696449798442.png

 

If I answered your question, please mark my post as solution, Appreciate your Kudos 👍

Follow me on Linkedin
Vote for my Community Mobile App Idea 💡

 



Did I answer your question? Mark my post as a solution! Appreciate your Kudos
Follow me on LinkedIn linkedIn
Vote for my Community Mobile App Idea

Proud to be a Super User!




View solution in original post

1 REPLY 1
Idrissshatila
Super User
Super User

Hello @akhassim ,

 

First create the following measure 

Date color = 
Var selected = SELECTEDVALUE('Table'[Start date]) 
return
IF( selected> TODAY() && SELECTEDVALUE('Table'[Status]) = "Open", " Red" )

 

Then go to the date field and select conditional formatting and select font color 

Idrissshatila_0-1696449658471.png

 

then select format style as field value and date color measure 

Idrissshatila_1-1696449750317.png

 

and this is the result

Idrissshatila_2-1696449798442.png

 

If I answered your question, please mark my post as solution, Appreciate your Kudos 👍

Follow me on Linkedin
Vote for my Community Mobile App Idea 💡

 



Did I answer your question? Mark my post as a solution! Appreciate your Kudos
Follow me on LinkedIn linkedIn
Vote for my Community Mobile App Idea

Proud to be a Super User!




Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

February Power BI Update Carousel

Power BI Monthly Update - February 2026

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