Hi, I have data with amount spread across categories by columns and months by rows as listed below. Need help to find the difference from previous month for each product line dynamically for every month run. Appreciate your help on this.
| Product | Month | Category A | Category B |
| Prod A | 8.2021 | 20 | 30 |
| Prod A | 9.2021 | 40 | 50 |
| Prod A | 10.2021 | 60 | 40 |
| Prod B | 9.2021 | 25 | 40 |
| Prod C | 10.2021 | 50 | 80 |
Result should be like below
| Product | Month | Category A | Category B |
| Prod A | 8.2021 | 20 | 30 |
| Prod A | 9.2021 | 40 | 50 |
| Prod A | 10.2021 | 60 | 40 |
| Prod A | Diff | 20 | -10 |
| Prod B | 9.2021 | 25 | 40 |
| Prod B | Diff | -25 | -40 |
| Prod C | 10.2021 | 50 | 80 |
| Prod C | Diff | 50 | 80 |