Calling all Alteryx customers: Refer your colleague to try Alteryx and receive a $50 gift card. Sign up now!
Free Trial

Alteryx Designer Desktop Discussions

Find answers, ask questions, and share expertise about Alteryx Designer Desktop and Intelligence Suite.

To prepare a table based on the data available in 2 files for the entities.

chandatanwani
5 - Atom

I have two files

1. Investigation data file

2. Master file

 

 

From the investigation file, I have to take out RDM id and based on RDM Id take out the Entity Id. This Entity Id from the investigation file will then be used to lookup for data in the master file.

 

Investigation File Data

Entity IDRDM ID
3358121234
3358975678
45678912356

 

The Entity Id from Investigation file will be lookup with Primary Entity id in the Master file. The Primary Entity Id 456789 needs to be searched in Entity 1 id column to pull all the records with that id and this becomes level 1 in the output table. Then Entity Id 2 (567890) needs to be searched in Entity Id 1. The corresponding Entity id 2 (567891) becomes level 2 in the output table. Then Entity id (567891) needs to be searched in Entity Id 1. The corresponding Entity id 2 (567892) becomes level 3 in the output table. Then Entity id (567892) needs to be searched in Entity Id 1. The corresponding Entity id 2 (567893) becomes level 4 in the output table.

 

Master File Data

Entity 1 idclient legal nameEntity 2 idclient legal nameRelationship typeRelationship NameShortCode% ownershipPrimary Entity IDclient legal name
567892COL Ecstasy II Pte Ltd567893COL Asia III LP2ShareholderSH100456789COL WEALTH FINANCE LIMITED
567891COL Ecstasy Pte Ltd567892COL Ecstasy II Pte Ltd2ShareholderSH100456789COL WEALTH FINANCE LIMITED
567890COL WEALTH MANAGEMENT LIMITED567891COL Ecstasy Pte Ltd2ShareholderSH100456789COL WEALTH FINANCE LIMITED
456789COL WEALTH FINANCE LIMITED567890COL WEALTH MANAGEMENT LIMITED2ShareholderSH100456789COL WEALTH FINANCE LIMITED
456789COL WEALTH FINANCE LIMITED3457052K M Shiv1DirectorD0456789COL WEALTH FINANCE LIMITED
456789COL WEALTH FINANCE LIMITED3457051Manish1DirectorD0456789COL WEALTH FINANCE LIMITED
456789COL WEALTH FINANCE LIMITED3457050Nikhil1DirectorD0456789COL WEALTH FINANCE LIMITED
456789COL WEALTH FINANCE LIMITED3457049Tushar Kumar1DirectorD0456789COL WEALTH FINANCE LIMITED
456789COL WEALTH FINANCE LIMITED3457048Ramesh1DirectorD0456789COL WEALTH FINANCE LIMITED
456789COL WEALTH FINANCE LIMITED3457047Birendra Kumar1DirectorD0456789COL WEALTH FINANCE LIMITED
456789COL WEALTH FINANCE LIMITED3457046Ashish Kumar1DirectorD0456789COL WEALTH FINANCE LIMITED
456789COL WEALTH FINANCE LIMITED3457045Anisha Teckchandani1DirectorD0456789COL WEALTH FINANCE LIMITED

 

Output Table that needs to be built based on the data in the two files - 

LevelIdOwner %Relationship NameClient Legal Name
03457040 ClientCOL WEALTH FINANCE LIMITED
13457053100ShareholderCOL WEALTH MANAGEMENT LIMITED
23457054100ShareholderCOL Ecstasy Pte Ltd
33457055100ShareholderCOL Ecstasy II Pte Ltd
43457056100ShareholderCOL Asia III LP
134570520DirectorK M Shiv
134570510DirectorManish
134570500DirectorNikhil
134570490DirectorTushar Kumar
134570480DirectorRamesh
134570470DirectorBirendra Kumar
134570460DirectorAshish Kumar
134570450DirectorAnisha Teckchandani

 

I have too many records with the above scenario but I am just posting one scenario for ease of building the workflow. All the records in the file need to run in a loop to check for the scenarios.

 

Any help here would be highly appreciated.

0 REPLIES 0
Labels
Top Solution Authors