Please start any new threads on our new
site at https://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
Author |
Topic |
Adam West
Constraint Violating Yak Guru
261 Posts |
Posted - 2009-07-20 : 16:10:46
|
This expression, is supposed to look at the parameterenddate the month therin which in my case is 4 for Apriland disply second month or Feb. but it is not doing so. is there a mistake in the formula?=DateAdd ("m" , -2 , DATEADD("d",1,Parameters!ENDDATE.Value )) |
|
SwePeso
Patron Saint of Lost Yaks
30421 Posts |
Posted - 2009-07-20 : 16:22:57
|
EndDate.Value equals "4"? N 56°04'39.26"E 12°55'05.63" |
|
|
Adam West
Constraint Violating Yak Guru
261 Posts |
Posted - 2009-07-20 : 16:29:13
|
enddate in this case is 4/30/09the report shows the sales for the passed month and then 3 prior months but the order of the report starts with the prior months in this case01 02 03 04 |
|
|
SwePeso
Patron Saint of Lost Yaks
30421 Posts |
Posted - 2009-07-20 : 16:31:27
|
April 30th 2009 plus one day is May 1st, 2009.Substract 2 months from May 1st 2009 is March 1st 2009. N 56°04'39.26"E 12°55'05.63" |
|
|
|
|
|