Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Filtering on financial previous YTD

Status
Not open for further replies.

Sidney786

Programmer
Aug 7, 2000
64
GB
Hi

I have created a report which shows last years sales and this years sales controlled by a date_to prompt.

However when I run up to previous month it keeps displaying including this month.

[FYS]>= IF (extract (month,?To_date?) in (01,02,03) )
THEN ((extract(year,?To_date?)-1)-1)
ELSE (extract(year,?To_date?)-1 )

Any pointers would be appreciated.

Sid
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top