BookmarkSubscribeRSS Feed
☑ This topic is solved. Need further help from the community? Please sign in and ask a new question.
lambad
Obsidian | Level 7

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

   

1 ACCEPTED SOLUTION

Accepted Solutions
audrey
SAS Employee

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

 

 

 

www.sas.comsupport.sas.com
SAS®... THE POWER TO KNOW®

View solution in original post

2 REPLIES 2
audrey
SAS Employee

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

 

 

 

www.sas.comsupport.sas.com
SAS®... THE POWER TO KNOW®
lambad
Obsidian | Level 7

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  

sas-innovate-2024.png

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

Register now!

How to connect to databases in SAS Viya

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.

Discussion stats
  • 2 replies
  • 472 views
  • 1 like
  • 2 in conversation