Get Inspire insights from former attendees in our AMA discussion thread on Inspire Buzz. ACEs and other community members are on call all week to answer!

Alteryx Designer Desktop Discussions

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

Joining across multiple columns

wonka1234
10 - Fireball

Hi all,

 

I am trying to wrap my head around this, I am trying to do a join like so:

 

Table a: 

 

abcdefghijk
John John   Smith John John

 

Table b:

 

IDOther
JohnHRUS1
JohnADTDBFG
JohnACF2
SmithHDV
SmithVERNA
SmithCMREV
SmithPCPAA
SmithS2P
SmithG0042
SmithG0043
SmithCITRIXRA
SmithTNE

 

Current result:

 

abcdefghijkOther
John John   Smith John Johnadtdbfg
John John   Smith John Johnacf2
John John   Smith John Johnhrus1

 

Expected Result:

 

abcdefghijkOther
John John   Smith John Johnhrus1
John John   Smith John Johnadtdbfg
John John   Smith John Johnacf2
John John   Smith John Johnhdv
John John   Smith John Johnverna
John John   Smith John Johncmrev
John John   Smith John Johnpcpaa
John John   Smith John Johns2p
John John   Smith John Johng0042
John John   Smith John Johng0043
John John   Smith John Johncitrixra
John John   Smith John Johntne

 

 

Trying something like this:

 

wonka1234_0-1646776557793.png

where I join I to a,b,c,d,e . etc

 

What does get my expected results:

 

wonka1234_2-1646776833797.png

 

 

but here I'm using two filters, both on John and Smith, and I get the correct results.

In reality I cannot do this filter.. as I have many names and cant put that many filters.

 

 

Does anyone have a smarter way to join this and get the expected results? 

I cannot wrap my brain around this.

 

4 REPLIES 4
ArtApa
Alteryx
Alteryx

Hi @wonka1234 - Here is an idea:

ArtApa_0-1646779197459.png

 

wonka1234
10 - Fireball

Thank you @ArtApa 

However I forgot to mention I have other columns! I surely dont want to do the key on those right?

Is there anyway I can narrow your key to certain columns only?

ArtApa
Alteryx
Alteryx

Hi @wonka1234 - Can you please be more specific and describe the rules?

wonka1234
10 - Fireball

Hi @ArtApa  ,

 

It seems like everything is joining, even the blanks.

Anyways around this? I am getting many joins.

Labels