I am trying to create a field that will show a flag when one of two conditions are met around a Platform Due Date:
- Delivery Date is after the Platform Due Date
- Submitted Date is within 56 days (or 8 weeks) of Platform Due Date
I also don’t want it to show anything if there’s no Platform Due Date (field is blank), as this field/column doesn’t apply for all records.
I’m not getting any errors, but it’s also not showing the flag for a record that was submitted 3/29/22 but was due 3/7/22. In this case, the submitted date is after the due date, but there will be future cases where the submitted date is before the due date, but still less than 8 weeks or 56 days before.
Here’s what I’ve got:
IF(AND({Delivery Date} > {Platform Due Date}, OR(DATETIME_DIFF({Submitted Date}, {Platform Due Date}, ‘days’ < 56)), {Platform Due Date}, “Field Is Not Empty”), “ PAST DEADLINE”, “”)