This is best Fabric, Power BI, SQL and AI community event. How do we know? The last event sold out! Save €200 with code FABCMTY200.
Register nowA new Data Days event is coming soon! This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. Don't miss out.
I have a column of due dates and I want to check if 60 days have passed since the due date. If so, I would like to apply conditional formatting and highlight late entries in yellow.
If 120 days have passed since the due date I would like to highlight the entries in red.
I have created 2 measures, one checking if its 60 days late and another checking if 120 days late. If today's date is less than 60 days or 120 days past or if the value is blank the measure returns 0. If not it returns 1.
Measure 1:
Solved! Go to Solution.
@aar1 ,
You do not need to create separate measures. Create a new Calculated Column:
DaysPastDue = DATEDIFF( [DueDate], Today(), DAY )
DueDate DaysPastDue
| 01/15/2023 | 152 |
| 04/15/2023 | 62 |
| 05/15/2023 | 32 |
| 06/16/2023 | 0 |
Then base your conditional formatting on this calculated column. Follow these steps:
I trust this is close to what you are looking for and helps you on your way.
Regards,
@aar1 ,
You do not need to create separate measures. Create a new Calculated Column:
DaysPastDue = DATEDIFF( [DueDate], Today(), DAY )
DueDate DaysPastDue
| 01/15/2023 | 152 |
| 04/15/2023 | 62 |
| 05/15/2023 | 32 |
| 06/16/2023 | 0 |
Then base your conditional formatting on this calculated column. Follow these steps:
I trust this is close to what you are looking for and helps you on your way.
Regards,
Check out the May 2026 Power BI update to learn about new features.
Sign up to receive a private message when registration opens and key events begin.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
| User | Count |
|---|---|
| 31 | |
| 26 | |
| 23 | |
| 22 | |
| 13 |
| User | Count |
|---|---|
| 61 | |
| 47 | |
| 27 | |
| 23 | |
| 18 |