Hi,
I am attempting to create a custom form calculated field to show if we met our agreed upon due date.
We have a field on a custom form labeled 'SLA Date' that is auto generated with a date 5 days after submission - this field uses the current parameters of:
Views
Replies
Total Likes
You might discover that the less than/greater than functions only work with numbers (not dates), so you might want to retool to say something like "if the difference between these two dates is less than (or greater than) some number".
e.g. IF(WEEKDAYDIFF({DE:SLA Date},{actualCompletionDate})>0,"SLA MET","SLA Not Met")
So basically think up some equation that results in a number being greater or less than some other number.
And, I would also double check to make sure your initial calculated field is formatted as a date field.
I recreated your DE:SLA Date in my sandbox environment, gave it a try, and it worked for me. My main difference is that on the "SLA Met" calculation, I added a condition to look at the project status and only check the DE:SLA Date if the Project Status was Complete.
Here's the code I used.
IF(CONTAINS("CPL",{status}),IF({DE:SLA Date}>{actualCompletionDate},"SLA Met","SLA Not Met"),"")
And here's some screenshots:
Views
Likes
Replies
Views
Likes
Replies