Here is the table I¡¯m working with:
dbo.Reject
|
Rejections |
Amount |
Date |
|
5 |
12 |
1/4/07 |
|
9 |
3 |
1/6/07 |
|
1 |
6 |
1/23/07 |
|
0 |
0 |
2/11/07 |
|
7 |
8 |
2/20/07 |
Is it possible to write an expression for RS2005 in the details row in a table that will separate and add the rejection and amount field values for each calendar week and lay them out to look like below:
|
Week |
Rejections |
Amount |
|
1 |
14 |
15 |
|
2 |
0 |
0 |
|
3 |
0 |
0 |
|
4 |
1 |
6 |
|
5 |
0 |
0 |
|
6 |
0 |
0 |
|
7 |
0 |
0 |
|
8 |
7 |
8 |
I¡¯m trying to make a report that shows the number of rejections and amounts on a week to week basis. So I need RS2005 to add the rejections and amounts for each week date range and display it line-by-line automatically on a per-week basis.
Week 1 is 1/1/07-1/6/07 according to DATEPART(WEEK,Date) and so on¡
Thanks in advance!