cancel
Showing results for 
Search instead for 
Did you mean: 

Fabric is Generally Available. Browse Fabric Presentations. Work towards your Fabric certification with the Cloud Skills Challenge.

Reply
emae613
Frequent Visitor

Conditional Format Overdue Date Based on Today

Good Evening-

 

I am stuck on Conditionally formatting an overdue date. If the date shown in the table is in the past from today's date, how do I write the DAX to highlight the background color red? Also, what steps do I take to apply the conditional format? My start date in the table is formatted as a date/time. The dataset will also be refreshed daily so I want to make sure this will stay a conditional format as the current date changes. Thank you! 

1 ACCEPTED SOLUTION
ValtteriN
Super User
Super User

Hi,

You can create a measure like this:

DateFormatMeasure = IF(MAX(DateFormat[Date])>TODAY(),1,0)

Then go here:
ValtteriN_2-1644048365636.png

 


 

And create a rule like this:
ValtteriN_3-1644048421424.png

 

End result:

ValtteriN_4-1644048443018.png

I hope this post helps to solve your issue and if it does consider accepting it as a solution and giving the post a thumbs up!

My LinkedIn: https://www.linkedin.com/in/n%C3%A4ttiahov-00001/





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




View solution in original post

2 REPLIES 2
ValtteriN
Super User
Super User

Hi,

You can create a measure like this:

DateFormatMeasure = IF(MAX(DateFormat[Date])>TODAY(),1,0)

Then go here:
ValtteriN_2-1644048365636.png

 


 

And create a rule like this:
ValtteriN_3-1644048421424.png

 

End result:

ValtteriN_4-1644048443018.png

I hope this post helps to solve your issue and if it does consider accepting it as a solution and giving the post a thumbs up!

My LinkedIn: https://www.linkedin.com/in/n%C3%A4ttiahov-00001/





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




Thank you! That worked perfect. However, what if I wanted to format it based on current date and current time? Is there a way to do that? Thanks again for all your help I greatly appreciate it! 

Helpful resources

Announcements
PBI November 2023 Update Carousel

Power BI Monthly Update - November 2023

Check out the November 2023 Power BI update to learn about new features.

Community News

Fabric Community News unified experience

Read the latest Fabric Community announcements, including updates on Power BI, Synapse, Data Factory and Data Activator.

Power BI Fabric Summit Carousel

The largest Power BI and Fabric virtual conference

130+ sessions, 130+ speakers, Product managers, MVPs, and experts. All about Power BI and Fabric. Attend online or watch the recordings.

Top Solution Authors
Top Kudoed Authors