travelerII
Technical User
I am using Crystal 10.
I am trying to get sales invoice quantities on a rolling last 6 months.
I am using the following formula for sales from the current month -1 (in this case March)
IF {SINVOICED.INVDAT_0} in dateserial(year(CurrentDate), month(currentdate)-0, 1) to
dateserial(year(CurrentDate), month(currentdate)-1, 1)-1
then {@Qty}
else 0
The problem I am running into is that it is returning sales of 04/01/2011. So for each of the 6 trailing months if there are any sales on the 1st of the month ahead of what I want it gets double counted. In this case it shows up on the current month and the current month -1.
Any ideas on what is causing this and how to fix it?
Thanks
I am trying to get sales invoice quantities on a rolling last 6 months.
I am using the following formula for sales from the current month -1 (in this case March)
IF {SINVOICED.INVDAT_0} in dateserial(year(CurrentDate), month(currentdate)-0, 1) to
dateserial(year(CurrentDate), month(currentdate)-1, 1)-1
then {@Qty}
else 0
The problem I am running into is that it is returning sales of 04/01/2011. So for each of the 6 trailing months if there are any sales on the 1st of the month ahead of what I want it gets double counted. In this case it shows up on the current month and the current month -1.
Any ideas on what is causing this and how to fix it?
Thanks