Hi Experts,
I have a reporting requirement where I have to show daily sales by month and cumulative daily sales for particular month for the year.
e.g. If the current month is January then my result shows fine. see below
Calendar Day | Net Sales | Target | Sales Year | Actual | Target |
01/01/2014 | 100 | 90 | 01/01/2014 | 100 | 90 |
02/01/2014 | 200 | 180 | 02/01/2014 | 300 | 270 |
03/01/2014 | 300 | 290 | 03/01/2014 | 600 | 560 |
04/01/2014 | 400 | 350 | 04/01/2014 | 1000 | 910 |
But If I am in the month of Feb and I want to show sales for the month and cumulative sales for the year for just Feb but instead of showing cumulative total from 01/01/2014 to end of Feb it starts again at begining of Feb - See below
e.g.
Calendar Day | Net Sales | Target | Sales Year | Actual | Target |
01/02/2014 | 200 | 190 | 01/02/2014 | 200 | 190 |
02/02/2014 | 400 | 380 | 02/02/2014 | 600 | 570 |
03/02/2014 | 600 | 590 | 03/02/2014 | 1200 | 1160 |
04/02/2014 | 800 | 750 | 04/02/2014 | 2000 | 1910 |
Expected Result - sales for the year shoud show cumulative result from 01/01/2014 - 31/12/2014
Calendar Day | Net Sales | Target | Sales Year | Actual | Target |
01/02/2014 | 200 | 190 | 01/02/2014 | 1200 | 1100 |
02/02/2014 | 400 | 380 | 02/02/2014 | 1600 | 1480 |
03/02/2014 | 600 | 590 | 03/02/2014 | 2200 | 2070 |
04/02/2014 | 800 | 750 | 04/02/2014 | 3000 | 2820 |
How do I achive this?
please help.