Alteryx Designer Desktop Discussions

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

How to eliminate which does not have matching code and coming multiple times in a row

Sshasnk
8 - Asteroid
Primary code Primary_Unique_IDSec_Unique_IdSec code
CA123645WB
EC456903KL
EC456903EC
KM656839KM
EC879519NA
EC879519EC
EC879519NA

 

I have to eliminate the above record: on 2 conditions

 

1. If it is coming multiple times

2. Primary code = sec code

 

Expected Output:

 

Primary code Primary_Unique_IDSec_Unique_IdSec code
CA123645WB
EC456903EC
KM656839KM
EC879519EC
16 REPLIES 16
AngelosPachis
16 - Nebula

That is correct @Sshasnk . To solve this without a unique tool, I think you should help us understand what you mean by saying "A record comes in multiple times"

 

How do you define a record multiplication? Is that based on Primary Code, Primary Unique ID, Secondary Unique ID/Code or a combination of all of the above?

 

Then I think we can solve it with another way, but it is still ambiguous what you are looking for exactly

Sshasnk
8 - Asteroid

@Emil_Kos  Sorry Cant share the canvas as it comes under risk, but I can tell you what I tried. I was using summarize tool to count multiple records (using count) and filtering where the count is more than joining it back and checking primary code = sec code and using joining all of them back together  

Emil_Kos
17 - Castor
17 - Castor

Hi @Sshasnk,

 

Sounds like you have replaced the duplicated tool with join tool. It strange that duplicate didn't met your needs but happy that eventually it worked for you 🙂 

Sshasnk
8 - Asteroid

@AngelosPachis 

Primary code Primary_Unique_IDSec_Unique_IdSec code
CA123645WB
EC456903EC
EC456903KL
KM656839KM
EC879519EC
EC879519NA
EC879519NA

 

So if you will see above 456 (Primary_Unique_ID ) and 903 (Sec_Unique_Id) is coming twice (multiple records) -> same goes for record 879 and 519

and if you will see 456 and 839 it is only coming once (single record) -> same goes for 123 and 645

AngelosPachis
16 - Nebula

Hi @Sshasnk 

 

Your explanation really helped me. I think another approach is similar to what you described to @Emil_Kos , which you can find below

 

Screenshot 2020-10-07 112417.jpg

 

Let me know if that worked for you please

grazitti_sapna
17 - Castor

Hi @Sshasnk, my workflow is similar to what @AngelosPachis  has prepared.

 

 

grazitti_sapna_0-1602068692039.png

 

Thanks.

Sapna Gupta
grazitti_sapna
17 - Castor

HI @Sshasnk , @AngelosPachis  another possible way to solve this problem.

 

grazitti_sapna_0-1602069146871.png

 

Please mark this post as solution if this is what you are looking for?

 

Thanks.

 

Sapna Gupta
Labels