Is there a way to update the first row field that it's >0 and subtract from it until it reaches 0 then move on to the next row and keep subtracting from it?
Table:
| Column | Amount |
|---|---|
| First | 0 |
| Second | 5 |
| Third | 5 |
Amount to subtract = 9
Result:
| Column | Amount |
|---|---|
| First | 0 |
| Second | 0 |
| Third | 1 |