Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.
Hello Experts
I have a column of most recent dates and I want to create a column/measure to see whether the most recent date is 90+ days ago and if so returns the text "Overdue".
I have used the following dax but Im not getting the correct results
Expected Output
Solved! Go to Solution.
Correct DAX for a Calculated Column:
Overdue =
IF(
DATEDIFF('Table'[Most Recent Date], TODAY(), DAY) > 90,
"Overdue",
" "
)
💌 If this helped, a Kudos 👍 or Solution mark ✅ would be great! 🎉
Cheers,
Kedar
Connect on LinkedIn
Hi @Elisa112 ,
The issue with your DAX formula lies in the comparison logic for determining whether a date is 90 or more days old. To fix this, you can calculate the overdue status by comparing the "Most Recent Date" with the date 90 days prior to today. Use the following DAX formula for a calculated column:
Overdue =
IF(
'Table'[Most Recent Date] <= TODAY() - 90,
"Overdue",
BLANK()
)
This formula works by checking if the "Most Recent Date" is less than or equal to the date 90 days ago, calculated as TODAY() - 90. If the condition is true, it returns "Overdue"; otherwise, it returns blank.
For your example, if the "Most Recent Date" is 14/08/2024 and today's date is after 12/11/2024, it will return "Overdue." If the "Most Recent Date" is 04/10/2024 and today's date is before 02/01/2025, it will not return "Overdue." Ensure that the "Most Recent Date" column is correctly formatted as a date type to get accurate results. Let me know if you need further clarification or assistance.
Best regards,
Correct DAX for a Calculated Column:
Overdue =
IF(
DATEDIFF('Table'[Most Recent Date], TODAY(), DAY) > 90,
"Overdue",
" "
)
💌 If this helped, a Kudos 👍 or Solution mark ✅ would be great! 🎉
Cheers,
Kedar
Connect on LinkedIn
Thanks very much, works great!