We are celebrating the 10-year anniversary of the Alteryx Community! Learn more and join in on the fun here.
Start Free Trial

Alteryx Designer Desktop Discussions

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

Remove Offset entries in data set, negative and positive number

MiroWEX
5 - Atom
I have a dataset with offsetting entries (e.g., -2400 and 2400), and I’d like to exclude them based on the Description, Entity Acct, and File Name. The data will be unsorted, and the +/- base amounts may appear in random rows.

 

In this case, I would only like to keep Description CC rows. Appreciate any help!

DescriptionEntity AcctFileNameBase Amount
AA54545CCC150
AA54545CCC-150
BB45444ddd180
BB45444ddd-180
CC52111ffffff

2456

CC52111serfd2365
7 REPLIES 7
binuacs
21 - Polaris

@MiroWEX one way of doing this with the join tool

image.png

Luke_C
17 - Castor
17 - Castor

Hi @MiroWEX 

 

You might try grouping the records and removing the ones that net to 0:

 

image.png

MiroWEX
5 - Atom

Thank you both for your help! Since I have a large dataset, both of these solutions aren't providing the correct results (your solutions are great but mainly because I did not notice some nuisances with the data).

 

Binuacs, I am reviewing your workflow but since i have 40000+ rows the join tool is returning 4+ million rows... I think the issue is that I have many of the same Descriptions, Entity Acct, and File name records where the base amount is the the only difference. 

 

Luke, for your workflow, I missed the fact that my data has some entries share the same Description, Entity Acct, and File Name but have different amounts that are not offsetting. As a result, the Summarize tool doesn't bring the total to zero.

 

Example for 

DescriptionEntity AcctFileNameBase Amount
AA54545CCC150
AA54545CCC-150
AA54545CCC1300
BB45444ddd180
BB45444ddd-180
BB45444ddd

300

CC52111serfd2365
CC52111ffffff

2456

 

so the results would look like this 

 

AA54545CCC1300
BB45444ddd

300

CC52111serfd2365
CC52111ffffff

2456

Luke_C
17 - Castor
17 - Castor

Hi @MiroWEX 

 

What would your expected outcome be in that scenario, then? I think it would still effectively remove the netting records. 

CoG
14 - Magnetar

Hopefully this matches what you're looking for. This works by identifying matching pairs of records with positive and negative base amounts and removing those matching pairs:

 

Screenshot.png

 

Hope this helps and Happy Solving!

Ritesh_Parmar
6 - Meteoroid

Hi, you can can try this, its simple.

MiroWEX
5 - Atom

Thanks everyone! CoGs solution worked perfectly! 

Labels
Top Solution Authors