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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

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
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel1

Power BI Monthly Update - May 2024

Check out the May 2024 Power BI update to learn about new features.