I have got the following file I am trying to take the difference between each Type for Cost, Interest and MTM. I am not sure how best to accomplish this.
| RecordID | Type | Cost | Interest | MTM |
| 1 | Type 1 | 125 | 125 | |
| 2 | Type 1 | 100 | 100 | |
| 3 | Type 2 | 300 | 100 | 50 |
| 4 | Type 2 | 100 | 100 | |
| 5 | Type 3 | 500 | 125 | 75 |
| 6 | Type 3 | 100 | 100 | |
| 7 | Type 4 | 125 | 125 | 100 |
| 8 | Type 4 | 100 | 100 | |
| 9 | Type 5 | 125 | 125 | |
| 10 | Type 5 | 100 | 100 | |
I would like it to look something like this.
| RecordID | Type | Cost | Interest | MTM | |
| 1 | Type 1 | 125 | 125 | | |
| 2 | Type 1 | 100 | 100 | | |
| | | 25 | 25 | | Difference |
| 3 | Type 2 | 300 | 100 | 50 | |
| 4 | Type 2 | 100 | 100 | | |
| | | 200 | 0 | 50 | Difference |
| 5 | Type 3 | 500 | 125 | 75 | |
| 6 | Type 3 | 100 | 100 | | |
| | | 400 | 25 | 75 | Difference |
| 7 | Type 4 | 125 | 125 | 100 | |
| 8 | Type 4 | 100 | 100 | | |
| | | 25 | 25 | 100 | Difference |
| 9 | Type 5 | 125 | 125 | | |
| 10 | Type 5 | 100 | 100 | | |
| | | 25 | 25 | 0 | Difference |
I appreciate the help with this. Thank you!