I appreciate this isn’t directly epicor but its epicor related!
M = receipt date
P = promise date
Current formula =IF(M2="","",IF(M2<=P2,“Yes”,“No”))
So the above says if the receipt date is blank give me blank otherwise if the receipt date is less than the promise date give me “Yes” (meaning on time)…otherwise “No”.
I need to add to this formula to say "if the receipt date is blank AND the promise date has passed (gone past today) then also return “no”.
Looks like you got your EXCEL answer, but thought I would throw out some other answers in C# and SQL… Those that are on E10 can use these types of simple one-liner if statements as well (but often dont realize it)
In C#, to do a single line IF statement, like Excel, you do the following:
(This is saying "If A equals B, then return C, else return D)
MyAnswer = (A==B) ? C : D;
(This is saying "If A equals B, then return C, else if A > B return E, else return F)
MyAnswer = (A==B) ? C : (A>B) ? E : F ;
(This is saying "If A equals B AND C equals D return X else return Y)
MyAnswer = (A==B && C==D) ? X : Y ;
But in BAQs, the conditions are done in SQL format… so in a calculated field you could say: