I am moving my data source from sharepoint to datavers. I have date columns that i want to compare to generate status.
I have two columns [Due to Customers] and [Date Submitted]. Basically I just want to create a column that show the submission status base on the two date columns. Below is the code that works when I use it in sharepoint.
=IF(AND([Date Submitted]="",[Due to Customers]>TODAY()),"Due Later",IF(AND([Date Submitted]="",[Due to Customers]<=TODAY()),"Over Due",IF([Date Submitted]>[Due to Customers],"Late Submitted",IF([Date Submitted]<=[Due to Customers],"On Time Submitted",IF([Date Submitted]<[Due to Customers],"Over Due")))))
It seem dataverse fomular work a litle bit different and I strugle in comparing due date to today date. I try to use UTCtoday but it can't compare as it is in different timezone format. I tries switch funtion but still not success full. Can some body write the fomular base on below condition.
If [Date submitted] is blank and [Due date to customer] is more than today then "Due later"
If [Date submitted] is blank and [Due date to customer] is less than or equal to today then "Over due"
If [Date submitted] more than [Due date to customer] then "Late Submitted"
If [Date submitted] Less than or equal to [Due date to customer] then "On Time Submitted"
Else "Over due"
appriciate your help