Hi,
I have set of data which is need to identify the number of field and which criteria is need... see sample table data.
Input
| LOAN | ID | ID1 | ID2 | ID3 |
| 1234 | ID001 | ID001 | ID012 | ID023 |
| 1234 | ID012 | ID004 | ID015 | |
| 1335 | ID023 | | | |
| 2564 | ID004 | | | |
| 7458 | ID015 | | | |
output should be this - if loan entry is >1 with different ID then show unique LOAN and ID should be show one only per hierarchy (ID1 then ID2, least ID3)
Output
| LOAN | ID |
| 1234 | ID001 |
| 1335 | ID023 |
| 2564 | ID004 |
| 7458 | ID015 |