ridhirao22
Programmer
Using CR 2008, Oracle 11g:
We have a report with lot of metrics to show by day (fiscal calendar current year vs last year) and aggregate by WTD, MTD, QTD, and YTD.
How can I aggregate last year data for WTD(week to date) only instead of full week? The report what I have now is aggregating for the whole week for last year. Grouping is done by the calender table we have where it has week number, month numbers, qtr number and year( for ex: 201209, 201202,20121,2012)
Below is the sample it should add up like
Dates Current Year Last Year
3/25/2012 2107.45 1423.75
3/26/2012 1734 2438.02
3/27/2012 1691.97 1710.08
3/28/2012 0 2340.94
3/29/2012 0 1908.06
3/30/2012 0 2073.5
3/31/2012 0 1547.53
WTD 5533.42 5571.85
Thank you in advance!
RR
We have a report with lot of metrics to show by day (fiscal calendar current year vs last year) and aggregate by WTD, MTD, QTD, and YTD.
How can I aggregate last year data for WTD(week to date) only instead of full week? The report what I have now is aggregating for the whole week for last year. Grouping is done by the calender table we have where it has week number, month numbers, qtr number and year( for ex: 201209, 201202,20121,2012)
Below is the sample it should add up like
Dates Current Year Last Year
3/25/2012 2107.45 1423.75
3/26/2012 1734 2438.02
3/27/2012 1691.97 1710.08
3/28/2012 0 2340.94
3/29/2012 0 1908.06
3/30/2012 0 2073.5
3/31/2012 0 1547.53
WTD 5533.42 5571.85
Thank you in advance!
RR