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!

Rolling Month Name with running total calculation 2

Status
Not open for further replies.

report2000

Technical User
Mar 1, 2005
45
0
0
US
I am passing a date parameter to display three months rolling data.

I have the following formula:

For 3 Months Forward rolling (Assuming I am running for August 2008 parameter)

Left (MonthName (month({?Eff_Date})+1),3)
Left (MonthName (month({?Eff_Date})+2),3)
Left (MonthName (month({?Eff_Date})+3),3)
Formula shows only Sep, Oct, Nov, etc... no Year

AND

For 3 Months Backward rolling
Left (MonthName (month({?Eff_Date})-1),3)
Left (MonthName (month({?Eff_Date})-2),3)
Left (MonthName (month({?Eff_Date})-3),3)
Formula shows only Jul, Jun, May, etc... no Year

Formula shows only May, Apr, Mar, etc... no Year

Have two questions:
(1) I would like ot show the Month and Year (May 08, or Apr 08)
(2) When selecting Jan or Feb 2008 I get a error message saying the date should be beween 1 and 12. I guess somehow it gets a negative number
 
Use the dateadd function

dateadd("m",-1,{?eff_date})

This will return an actual date. To get it to appear as MAR 08, just format it.

Software Sales, Training, Implementation and Support for Macola, eSynergy, and Crystal Reports

"What version of URGENT!!! are you using?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top