I have the below problem, if there is a row with action 'NEW' and directly below this row with the same id there is a 'CANCEL' .Then we need to remove both rows ( new and cancel) .Can anyone hep suggest a logic in Alteryx for this?
input data:
| Amount | ACTION | ID |
| 400000 | NEW | 72 |
| 500000 | NEW | 12 |
| 500000 | CANCEL | 12 |
| 0 | CORRECTION | 12 |
| 20000 | NEW | 89 |
| 20000 | CANCEL | 89 |
| 10000 | NEW | 11 |
| 90000 | NEW | 20 |
| 12000 | NEW | 23 |
| 12000 | CANCEL | 23 |
output of what I want to achieve:
| Amount | ACTION | ID |
| 400000 | NEW | 72 |
| 0 | CORRECTION | 12 |
| 10000 | NEW | 11 |
| 90000 | NEW | 20 |