Hi,
Can anyone help me out with this question that i have?
In SAP BW, i have the data coming in as cumulative like below
Calendar Year/Month | Account | Product | Channel | Amount |
---|---|---|---|---|
12.2015 | Sales | Ruler | Mini Mart | 100 |
01.2016 | Sales | Ruler | Mini Mart | 100 |
02.2016 | Sales | Ruler | Mini Mart | 200 |
03.2016 | Sales | Pencil | Supermarket | 100 |
04.2016 | Sales | Pen | Market | 100 |
05.2016 | Sales | Pen | Market | 200 |
1. In Jan 2016 and Feb 2016, my data is cumulative where it is coming in as 100 & 200 respectively, how can i write a routine to get feb 2016 data to minus off Jan 2016 data in order to get the actual data for Feb 2016?
Besides, by doing this, how can i know that if it is Jan 2016, the data do not minus off December 2015 because it is different year.
2. Should this be done in the transformation routine or at the query level?
Please help, any advice is welcomed.