Hi,
I've been facing a challenge to arrange some data I have. I have the table below. Due a technical limitation, I receive data like this where there is a duplicate for ID 1 (like sample 6033DDA) and I need to choose one of the ID 2 I see allocated to it, either ending HU1R005294 or HU4R003527 as example.
The issue is that right below for the next duplicate ID 1 (6043DDA) I will have to get either HU1R005294 in case I have considered already the HU4R003527 or the other way around.
I would either like to have the number HU4R003527 associated to both lines of 6033DDA, then HU1R005294 associated to both lines of 6043DDA.
The count I put there because there are scenarios which I have 3 times the same ID 1 and 3 different ID 2, which I have to apply the same logic.
Hope I was clear enough.
TIA
| ID 1 | ID 2 | Count |
| 2022080100000000006033DDA | HU1R005294 | 2 |
| 2022080100000000006033DDA | HU4R003527 | 2 |
| 2022080100000000006043DDA | HU1R005294 | 2 |
| 2022080100000000006043DDA | HU4R003527 | 2 |
| 2022080100000000006109DDA | 282C001135 | 2 |
| 2022080100000000006109DDA | 282C001138 | 2 |
| 2022080100000000006110DDA | 282C001135 | 2 |
| 2022080100000000006110DDA | 282C001138 | 2 |
| 2022080100000000006196DDA | 362C000672 | 2 |
| 2022080100000000006196DDA | 362C000674 | 2 |
| 2022080100000000006198DDA | 362C000672 | 2 |
| 2022080100000000006198DDA | 362C000674 | 2 |