on 2023 Sep 21 2:38 PM
Here is the formula I am using, but I am pulling in dates where the order is due say 7/7/23 but the ship date was 6/30/23. What am I missing? it also keeps removing the first set of grouping parentheses that groups lines 1 and 2.
({Delivery.Shipped_Date} = (YearToDate) and
{Delivery.Promised_Date} = (YearToDate)) and
({Delivery.Shipped_Date} > {Delivery.Promised_Date} or
(currentdate) > {Delivery.Promised_Date})
1. You do not need the first set of parentheses.
2. You're getting that data because of "currentdate > {Delivery.Promised_Date}. (Note that no parentheses are required around currentdate!). If you're trying to find overdue orders (not shipped yet) I would replace the formula with something like this:
{Delivery.Promised_Date} = (YearToDate) and
(
IsNull({Delivery.Shipped_Date}) or
{Delivery.Shipped_Date} = (YearToDate)
) and
(
{Delivery.Shipped_Date} > {Delivery.Promised_Date} or
(
currentdate > {Delivery.Promised_Date} and
IsNull({Delivery.Shipped_Date})
)
)
If you're using a default date instead of leaving dates as null, you would use that in place of the "IsNull()" call. For example, with a 1/1/1900 default date:
{Delivery.Shipped_Date} = Date(1900, 1, 1)
-Dell
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
69 | |
10 | |
8 | |
7 | |
6 | |
6 | |
6 | |
6 | |
6 | |
5 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.