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 |
Solved! Go to Solution.
Hi @BRRLL99 , thank you for your quesiton - this was an interesting one to figure out. Please find my steps, screenshots and solution all below
Method:
Note: the outputs are identifcal to your desired, but are in a slightly different order
any questions or adjustments (this isnt dynamic for more than one ID type) do let me know and please choose this is the solution if it was what you are after!
regards- Rhys Cooper
User | Count |
---|---|
18 | |
14 | |
13 | |
9 | |
8 |