Hello,
i have data as below and need to calculate for each product each week what the weekly percentage change is and whether that is normal. I am struggling to calculate a % change for each week. Once i have those i hope to calculate the standard deviation and flag anything that is outside 2 standard deviations as abnormal.
| Product codes | Date | Volume |
| a | 13/01/2020 | 3 |
| a | 20/01/2020 | 4 |
| a | 27/01/2020 | 2 |
| a | 03/02/2020 | 4 |
| a | 10/02/2020 | 3 |
| a | 17/02/2020 | 2 |
| a | 24/02/2020 | 4 |
| a | 02/03/2020 | 5 |
| a | 09/03/2020 | 6 |
| a | 16/03/2020 | 3 |
| b | 13/01/2020 | 2 |
| b | 20/01/2020 | 9 |
| b | 27/01/2020 | 8 |
| b | 03/02/2020 | 7 |
| b | 10/02/2020 | 8 |
| b | 17/02/2020 | 7 |
| b | 24/02/2020 | 8 |
| b | 02/03/2020 | 6 |
| b | 09/03/2020 | 6 |
| b | 16/03/2020 | 8 |