Alteryx Designer Desktop Discussions

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

How to append without duplicating the lines

WBCamargo
5 - Atom

Hi all,

 

I hope someone to help me.

 

I'm append my output in excel, but it is duplicating the lines. I would like to add just the new lines, and skip the previous lines. 

 

My example:

 

DateSNTimeResultStatus
10/jan/231A57004:02:1015,7Approved
11/jan/2320B25105:25:1520,7Failed
15/jan/2315C58903:10:3110,1Approved

 

After appending:

 

DateSNTimeResultStatus
10/jan/231A57004:02:1015,7Approved
11/jan/2320B25105:25:1520,7Failed
15/jan/2315C58903:10:3110,1Approved
10/jan/231A57004:02:1015,7Approved
11/jan/2320B25105:25:1520,7Failed
15/jan/2315C58903:10:3110,1Approved
17/jan/2340B87007:10:5930,5Failed

 

It is duplicating the lines 10/jan/23, 11/jan/23 and 15/jan/23, which all columns are the same. It is duplicating the data.

 

My desired output would be this:

 

DateSNTimeResultStatus
10/jan/231A57004:02:1015,7Approved
11/jan/2320B25105:25:1520,7Failed
15/jan/2315C58903:10:3110,1Approved
17/jan/2340B87007:10:5930,5Failed

 

I just would like to add the different lines (comparing all columns).

 

 

Does anyone knows how to do this?

 

 

Many thanks,

 

Wilson

7 REPLIES 7
atcodedog05
22 - Nova
22 - Nova

ignore my response

WBCamargo
5 - Atom

Hi Congratulations @ atcodedog05 ! Thank you for replying.

binuacs
20 - Arcturus

@WBCamargo Are you looking for the output like the one below?

 

binuacs_0-1676756166769.png

 

RobertOdera
13 - Pulsar

Hi, @WBCamargo 

 

Consider:

1. adding a Remove Duplicates tool after the Append in your workflow and configuring it to be unique for all columns (select all columns)

2. adding a Sample Tool after the Append in your workflow and configuring it to return the first, group by (select all columns)

 

Cheers!

atcodedog05
22 - Nova
22 - Nova

Hi @WBCamargo 

 

The only possible way I can see is

 

1. You read the data from the existing output file and append it with the new output rows (i,e performing append in the workflow instead of the output tool append option).

2. It is suggestible to use the record id tool before in case you want to maintain the order. For existing data start the record id from 1 and for new data start the record id 10000 or so a high number so that it always comes below existing data.

3. Remove duplicates using the unique tool or sample tool. 

4. Use the sort tool to reorder.

5. Configure the output data tool to overwrite the sheet.

 

There is no way we can achieve this without reading in the existing data to compare.

 

Hope this helps : )

atcodedog05
22 - Nova
22 - Nova

Happy to help : ) @WBCamargo 

Cheers and have a nice day!

rbelski
6 - Meteoroid

Your first option was a simple, straightforward solution that I'm sure I'll use often in the future!

Labels