Try this.
{Table.Datefield} in
[
DateSerial(Year(currentdate),Month(currentDate)-2,1) to_
DateSerial(Year(currentdate),Month(CurrentDate)-1,1)
]
Translated, if today = 3/13/2005
{Table.Datefield} in
[
DateSerial(Year(3/13/2005),Month(3/13/2005)-2,1) to_
DateSerial(Year(3/13/2005),Month(3/13/2005)-1,1)
]
{Table.Datefield} in
[
DateSerial(2005,3-2,1) to_
DateSerial(2005,3-1,1)
]
{Table.Datefield} in
[
Date(2005,1,1) to_
Date(2005,2,1)
]
Since to_ is excluding the end date, we finish up with the following in Show SQL Query
{Table.Datefield} => {ts '2005-01-01 00:00:00.00'} and
{Table.Datefield} < {ts '2005-01-01 00:00:00.00'}
Cheers,
-LW