Im trying to do a report where I will show figures for the last 8 weeks. My first field is the following:
if {DATE} in LastFullWeek then
{QTY} else 0
This works fine. Then for the week previous to that I do:
if {DATE} in Dateadd("d",-7,minimum(LastFullWeek)) to dateadd("d",-7,maximum(LastFullWeek)) then
{QTY} else 0
Again this works fine. Now I thought it would be a case of changing the -7 in the above formula to -14 to give me the week before that, and then so on with the other weeks. However this does not work. Maybe im doing something wrong, or there is another way to do this?
Im using Crystal 10
if {DATE} in LastFullWeek then
{QTY} else 0
This works fine. Then for the week previous to that I do:
if {DATE} in Dateadd("d",-7,minimum(LastFullWeek)) to dateadd("d",-7,maximum(LastFullWeek)) then
{QTY} else 0
Again this works fine. Now I thought it would be a case of changing the -7 in the above formula to -14 to give me the week before that, and then so on with the other weeks. However this does not work. Maybe im doing something wrong, or there is another way to do this?
Im using Crystal 10