For each row having a minus value under column Minus we need to adjust that minus value among adjacent columns
INPUT
| Sum_A | Minus | Sum_A Revised | Sum_1 | Sum_2 | Sum_3 | Sum_4 | Sum1_Sum4 |
| 100 | -50 | 50 | 20 | 40 | 20 | 20 | 100 |
| 50 | | 50 | 20 | | 30 | | 50 |
| 40 | -10 | 30 | 5 | 10 | 5 | 10 | 40 |
| 100 | | 100 | | 50 | | 50 | 100 |
| 30 | | 30 | | | 30 | | 30 |
| 75 | -25 | 50 | | 25 | 25 | 25 | 75 |
Problem Statement: For all rows that have a minus value we need to adjust Minus value in all Columns from Sum_1 to Sum_4 such that Sum1_Sum4 = Sum_A Revised
OUTPUT
| Sum_A | Minus | Sum_A Revised | Sum_1 | Sum_2 | Sum_3 | Sum_4 | Sum1_Sum4 |
| 100 | -50 | 50 | 0 | 10 | 20 | 20 | 50 |
| 50 | | 50 | 20 | | 30 | | 50 |
| 40 | -10 | 30 | 0 | 5 | 20 | 5 | 30 |
| 100 | | 100 | | 50 | | 50 | 100 |
| 30 | | 30 | | | 30 | | 30 |
| 75 | -25 | 50 | | 0 | 25 | 25 | 50 |
Is there a way we can achieve this in Alteryx?