Supplies are limited. Contact info@espc.tech right away to save your spot before the conference sells out.
Get your discountScore big with last-minute savings on the final tickets to FabCon Vienna. Secure your discount
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!