Free Trial

Alteryx Designer Desktop Discussions

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

How to compare a csv file and excel file to identify duplicates?

Sunithaprdp
8 - Asteroid

I am new to Alteryx. I wanted compare a csv file with 136 characters with an excel worksheet to identify lines with common identifier. The output should be similar to the csv input file. But it should contain only the details of common identifiers. Please help. I am attaching samples.

As per the sample : there is a common identifier between csv SAMPLE and excel sample that is '00012-0123-45 with name ABCDE. So the output should be the eliminated csv file with no second line that is:

QTY0001205789622021STUVW00000001.23400000000000123.0000000000009999.99000000020000000002379.670000000000000.000000000002345.78.

The text file should only contain first line of SAMPLEs.

67 REPLIES 67
binuacs
21 - Polaris

@Sunithaprdp using a join tool will solve your problem. If you provide some sample data we can help you on this.

Sunithaprdp
8 - Asteroid

Yes, I have provided a sample csv and sample excel worksheet. Also has mentioned the desired output. I have edited my question. Now would this be helpful to provide a workflow that suits the output. The output should be in .csv format

binuacs
21 - Polaris

@Sunithaprdp you need to take the common fields from the excel sheet and check against the .csv fields using the below filter formula 

 

Contains([Field_1], [NAME]) && Contains([Field_1], [IDENTIFIER])

 

binuacs_0-1641986036525.png

 

Sunithaprdp
8 - Asteroid

if then do we get an output in .csv format with same characters?

Sunithaprdp
8 - Asteroid

When I tried, I am getting desired output in an excel sheet. How to get the same in text like SAMPLE?

binuacs
21 - Polaris

@Sunithaprdp you need to output your result into a .csv file

binuacs_0-1641988513106.png

 

Sunithaprdp
8 - Asteroid

When I replaced with my original files I got error like this. Could you please advise what to do?

Sunithaprdp_0-1641992091424.png

 

binuacs
21 - Polaris

@Sunithaprdp change your append tool setting like below

 

binuacs_0-1641993053835.png

 

Sunithaprdp
8 - Asteroid

I tried that, but somehow I am not receiving desired output..Dont know exact issue 😞

Labels
Top Solution Authors