Hello All,
SAS DataFlux is new for me, i am trying to find duplicate in same data set base on few criteria. i have created 3 Keys, KEY1, KEY2, KEY3 which are like KEY1= FirstName+LastName+EMailID+PhoneNumber+Accountnumber. Key2= FirstName+LastName+EMailID+PhoneNumber. and Key3= FirstName+LastName+EMailID . Now i have challenge to make group base on these keys where i have to find:
Where Key1 qualifies for , those all 100% are Duplicate Records
Key2 will tell me, where all other detail is duplicate but different account number
Key3 will give where personal detail is duplicate but different Phone umber and account
How i can make this in DataFlux.
Thanks
Hi,
In Data Management Studio, there's a function/node called Clustering under the Entity Resolution group.
You can use it to create groups (or clusters) of records that match according to your rules. You will need to set a value in the "Output Cluster ID field", which will the name of the new column created to identify your groups.
Then, in the Conditions, you can add as many matching Conditions as you want. In your case, I believe you should have 3: Key1, Key2 and Key3.
You could have used your fields without concatenating them in the Conditions like:
Condition 1 = FirstName AND LastName AND EmailID AND PhoneNumber AND AccountNumber
OR
Condition 2 = FirstName AND LastName AND EmailID AND PhoneNumber
OR
Condition 3 = FirstName AND LastName AND EmailID.
In the "More Options" button, the option "Condition matched field prefix" once checked will create new columns to tell you which condition matched.
There are also other capabilities like Matching that you could use, to do some fuzzy matching on your data. For example, in case you want to match people named "Jon Davis" and "John Davis". Take a look at the node called Matching and tell us if you have more questions.
Hope this helps,
Audrey
Hi,
In Data Management Studio, there's a function/node called Clustering under the Entity Resolution group.
You can use it to create groups (or clusters) of records that match according to your rules. You will need to set a value in the "Output Cluster ID field", which will the name of the new column created to identify your groups.
Then, in the Conditions, you can add as many matching Conditions as you want. In your case, I believe you should have 3: Key1, Key2 and Key3.
You could have used your fields without concatenating them in the Conditions like:
Condition 1 = FirstName AND LastName AND EmailID AND PhoneNumber AND AccountNumber
OR
Condition 2 = FirstName AND LastName AND EmailID AND PhoneNumber
OR
Condition 3 = FirstName AND LastName AND EmailID.
In the "More Options" button, the option "Condition matched field prefix" once checked will create new columns to tell you which condition matched.
There are also other capabilities like Matching that you could use, to do some fuzzy matching on your data. For example, in case you want to match people named "Jon Davis" and "John Davis". Take a look at the node called Matching and tell us if you have more questions.
Hope this helps,
Audrey
Hello Audrey,
Good day!
I am really tankful to you for this. i wanted to directly write to you however i couldn't or i didn't find option to write you directly. thanks for your help and it worked for me.
Thanks
Dheeraj
Join us for SAS Innovate 2025, our biggest and most exciting global event of the year, in Orlando, FL, from May 6-9. Sign up by March 14 for just $795.
Need to connect to databases in SAS Viya? SAS’ David Ghan shows you two methods – via SAS/ACCESS LIBNAME and SAS Data Connector SASLIBS – in this video.
Find more tutorials on the SAS Users YouTube channel.