I have a dataset that has the following fields:
For every adjustment, I want to adjust the sales based on the adjustment by doing a reverse calculation for each record but only beginning from the date of the adjustment.
Example:
- Adjustment 1 is for $3,122 posted on 2021006 so i want to calculate the % of total beginning from 2021006 going backwards until the earliest date.
- Adjustment 2 is for $15,242 posted on 2019012 so i want to calculate the % of total beginning from 2019012 going backwards until the earliest date.
Below is an example of the original sample data and expected output: (if there's a way to keep the % of total in a single column for all adjustments, that would be ideal, given that there is no way to know how many adjustments a particular ID can have).
