Hi,
My Company's Fiscal year starts from April 1st through March 31st,with the following Fiscal periods: 3-31-03
4-26-03
5-24-03
6-28-03
7-26-03
8-23-03
9-27-03
10-25-03
11-22-03
12-27-03
I am required to write a report that calculates Prior Month YTD (PM-YTD) and Current Month YTD (CM-YTD)
I have a Date Range parameter, - @startDate and @EndDate ( eg. 3/31/2003 - 6/28/2003)
The above Date range will give me my CM-YTD.
I need help with my PM-YTD. i.e from 3/31/2003 - 5/24/2003. If I do (@startDate -1 ), I get the wrong amounts because of the above Fiscal Period format, that will obviously change from year to year?
Any help will be greatly appreciated.
This is how my final summary should look like
Period From 3/31/03 to 6/28/03
------------------------------
PM-YTD CM-YTD CM(JUNE)
------ ------ -------
5000 7000 2000
My Company's Fiscal year starts from April 1st through March 31st,with the following Fiscal periods: 3-31-03
4-26-03
5-24-03
6-28-03
7-26-03
8-23-03
9-27-03
10-25-03
11-22-03
12-27-03
I am required to write a report that calculates Prior Month YTD (PM-YTD) and Current Month YTD (CM-YTD)
I have a Date Range parameter, - @startDate and @EndDate ( eg. 3/31/2003 - 6/28/2003)
The above Date range will give me my CM-YTD.
I need help with my PM-YTD. i.e from 3/31/2003 - 5/24/2003. If I do (@startDate -1 ), I get the wrong amounts because of the above Fiscal Period format, that will obviously change from year to year?
Any help will be greatly appreciated.
This is how my final summary should look like
Period From 3/31/03 to 6/28/03
------------------------------
PM-YTD CM-YTD CM(JUNE)
------ ------ -------
5000 7000 2000