Hi Guys, im running CR9.
Im trying to get the prvious days data unless its monday, then I want to return Fridays, Saturdays and Sundys data.
I have the following in my record selection but the report is still returning wrong data.
{wmTransaction.TransactionDate} < currentdate
and {wmTransaction.TransactionDate} >
(if dayofweek({wmTransaction.TransactionDate}, 1) = 2 then
currentdate - 4
else currentdate - 2)
Since there is currently only a small amount of test data in the table, im not sure if its all data or the wrong days data its returning but it does appear to be returning everything as I have tried changed the day numbers etc.
I know nothing should be returned today but I am getting data dated the 11th.
Im trying to get the prvious days data unless its monday, then I want to return Fridays, Saturdays and Sundys data.
I have the following in my record selection but the report is still returning wrong data.
{wmTransaction.TransactionDate} < currentdate
and {wmTransaction.TransactionDate} >
(if dayofweek({wmTransaction.TransactionDate}, 1) = 2 then
currentdate - 4
else currentdate - 2)
Since there is currently only a small amount of test data in the table, im not sure if its all data or the wrong days data its returning but it does appear to be returning everything as I have tried changed the day numbers etc.
I know nothing should be returned today but I am getting data dated the 11th.