I have following data
| Amount | ID |
| -400 | 100A |
| -400 | 100A |
| 400 | 100A |
| -400 | 100A |
| 100 | 100A |
| -100 | 100A |
| 10 | 100A |
| 5 | 100A |
| 6 | 100A |
| -6 | 100A |
| -5 | 100A |
| -10 | 100A |
| -5 | 100A |
| -5 | 100A |
| 5 | 100A |
| 99 | 100A |
I have tried this approach to get the expected output
Solved: Multi-Row level Analysis - Alteryx Community, My data has duplicates with positive and negative this approach is not working out
Expected output: positive number should be matched with negative number
| Amount | ID | MATCH |
| -400 | 100A | |
| -400 | 100A | |
| 400 | 100A | M |
| -400 | 100A | M |
| 100 | 100A | M |
| -100 | 100A | M |
| 10 | 100A | M |
| 5 | 100A | M |
| 6 | 100A | M |
| -6 | 100A | M |
| -5 | 100A | M |
| -10 | 100A | M |
| -5 | 100A | |
| -5 | 100A | M |
| 5 | 100A | M |
| 99 | 100A | |