Advent of Code is back! Unwrap daily challenges to sharpen your Alteryx skills and earn badges along the way! Learn more now.

Alteryx Designer Desktop Discussions

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

How to achieve desired Output below

Edu
7 - Meteor

Hi,

 

I'm facing some difficulties to find the right tool to have the desired output as per shared below:

 

My Input Data:

PLANTORIGINCOUNTRYNO_CONVEYANCE
PAPT2A1ASOUTH AFRICA154556
PAPFQDEAPEOPLES REP OF CHINA154556
PAPGBJWCTHAILAND1000040
PAPGBJWCTHAILAND1004794
PAPCPZPASOUTH AFRICA1028858
PAPT2A1ASOUTH AFRICA1028858
BCMLA3264BPEOPLES REP OF CHINA1033690
PAP0132AGERMANY1034104
PAPGSDTPPEOPLES REP OF CHINA1034117
SBC0134DGERMANY1034762
PAPHB13AINDIA1036024
PAPDA4WDINDIA1036024
PAPAHVFAINDIA1036024
PAPGBJWCTHAILAND10403
PAPT2A1ASOUTH AFRICA1042814
BCMLAGMP5AMEXICO1050137
BCMLA1688DINDIA15046
PAPCPZPASOUTH AFRICA15046
PAPFQDEAPEOPLES REP OF CHINA1506284
PAPAX9WASOUTH AFRICA1508477
PAPGBJWCTHAILAND1514695

 

Desired Output:

PLANTORIGINCOUNTRYNO_CONVEYANCE
PAPGBJWCTHAILAND1000040
PAPGBJWCTHAILAND1004794
BCMLA3264BPEOPLES REP OF CHINA1033690
PAP0132AGERMANY1034104
PAPGSDTPPEOPLES REP OF CHINA1034117
SBC0134DGERMANY1034762
PAPGBJWCTHAILAND10403
PAPT2A1ASOUTH AFRICA1042814
BCMLAGMP5AMEXICO1050137
PAPFQDEAPEOPLES REP OF CHINA1506284
PAPAX9WASOUTH AFRICA1508477
PAPGBJWCTHAILAND1514695

 

Basically, eliminate all duplicated values on field "NO_CONVEYANCE" and keep the rest.

 

Many thanks for the support!!

 

Eduardo

4 REPLIES 4
Kenda
16 - Nebula
16 - Nebula

Hey @Edu!

 

Do you have the CReW macros installed? I think the Only Unique tool is just what you're looking for here!

Edu
7 - Meteor

Hi @BarnesK,

 

Thanks for your prompt feedback and support.

 

I do not have macros installed. I tried to use Unique tool, but I would want to bring only the values on field "NO_CONVEYANCE" that never repeat. Those values that repeat, eliminate all. Unique tool eliminate duplicated values but return keeping one of them. Should I use another tool?

 

Thank you again :)

Kenda
16 - Nebula
16 - Nebula

@Edu This is exactly what the Only Unique tool does. 

 

Here is a link so you can download the CReW macros: http://www.chaosreignswithin.com/p/macros.html. There are a lot in there that you might find useful in other cases as well.

 

 

If you do not wish to download those, you could alternatively use the normal Unique tool then add a Join after it, joining the U and D outputs on the [NO_CONVEYANCE] field. Then just keep the L output.

 

edu.PNG

Edu
7 - Meteor

.@BarnesK,

 

That's perfectly works well. I was not inserting theJoin tool after Unique.

 

Many thanks for your support, really appreciate it.

 

Have nice day! :)

 

Labels