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 Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Rolling 12 Month Values

Status
Not open for further replies.

sharonma

Technical User
Feb 7, 2003
1
US
I need to create a rolling twelve month report.

I have started with the following:

month(currentdate)-12 =month({table.name} )

I realize this won't work because there are no negetive months.
 
Use the dateadd function to add/subtract dates:

dateadd("m",-12,{table.date})

There are lots of examples of a rolling 12 month report here, check the Crystal other topics forum for Howard Hammerman's approach:

faq149-1220

-k
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top