Hello everyone
I am working on a workflow where i have to do do calculation on the below data, i need to offset the -ve value from the first positive value for each ID.
Any suggestions please
Input
| ID | Month | Data |
| 1 | March | 10 |
| 1 | April | -5 |
| 2 | Jan | 10 |
| 2 | Feb | 12 |
| 2 | March | -5 |
| 3 | Jan | -5 |
| 3 | Feb | 10 |
| 3 | March | 12 |
| 4 | Jan | 10 |
| 4 | Feb | 15 |
| 4 | March | -20 |
Output - This is the expected output after the calculation
| ID | Month | Data |
| 1 | March | -5 |
| 2 | Jan | 5 |
| 2 | Feb | 12 |
| 3 | Feb | 5 |
| 3 | March | 12 |
| 4 | Feb | 5 |
Thank you in advance