Bring your best ideas to the AI Use Case Contest! Enter to win 40 hours of expert engineering support and bring your vision to life using the powerful combination of Alteryx + AI. Learn more now, or go straight to the submission form.
Start Free Trial

Alteryx Designer Desktop Discussions

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

Removing duplicates

Rohan139
6 - Meteoroid

Hi Peeps,

 

I have this input data. Basically I want to Map the Email to Mobile in table 1   , but the problem is when I will apply  join it on Mobile Column It will Create 2 rows Each for Both the ID's which is Obvious Behaviour of Joins .

 

TABLE1
IDMOBILE
P19811…
P29811…

 

TABLE2
MOBILEEMAIL
9811…xyz@gmail.com
9811…abc@yahoo.com

 

OUTPUT GENERATED
IDMOBILEEMAIL
P19811…xyz@gmail.com
P19811…abc@yahoo.com
P29811…xyz@gmail.com
P29811…abc@yahoo.com

 

But I want output to be  Like Below . so that Email should not repeat if it occurs once .

 

IDMOBILEEMAIL
P19811…xyz@gmail.com
P29811…abc@yahoo.com

 

Please suggest some way to do this. 

 

Thanks in Advance.

7 REPLIES 7
DataNath
17 - Castor
17 - Castor

Hey @Rohan139, if you add a unique tool after the join and tick ‘email’ as the unique field, does that remedy the issue?

Rohan139
6 - Meteoroid
IDMOBILEEMAILTest Done
P19811…xyz@gmail.comsugar 
P19811…xyz@gmail.comthyroid
P29811…abc@yahoo.comLipid
P29811…abc@yahoo.comKidney

 

hey @DataNath , yes it would have work for me  but in current scenario if  I will apply the above logic it will only return single row.

DataNath
17 - Castor
17 - Castor

Oh, so in this case you’d want everything condensed to one row and all of the ‘Test Done’ records together?

 

If so, you could use a summarize tool - Group on ‘Mobile’, Group on ‘Email’ and then for ‘Test Done’ go select String > Concatenate.

binuacs
21 - Polaris

@Rohan139 your data is having duplicate mobile number ,thats why you are getting 4 rows while joining. are you expecting duplicate mobile numbers in your data? IF not you are use either join tool or find and replace to get your desired result

 

binuacs_0-1654513412359.png

 

binuacs
21 - Polaris

@Rohan139 Another option if you have duplicate phone number use the join by record position option in the join tool

 

binuacs_1-1654513676430.png

 

Qiu
21 - Polaris
21 - Polaris

@Rohan139 
I would do the same as @binuacs , mabe adding a sort tool to make sure the order?

And for your mobile column, is it a mobile number? so it would be longer and become unique maybe?

Nezrin
11 - Bolide
11 - Bolide

If the order of records is going to be the same, you could use "Join by record position". Else apply a sort before joining

Thanks,
Nez
Alteryx ACE | Sydney Alteryx User Group Lead | Sydney SparkED Contributor
Labels
Top Solution Authors