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.

Re-arrange table based on inter table mapping

PaladinKnight
6 - Meteoroid

I am trying to re-arrange my table and do some inter-table mapping

My input looks like this (I used the binocular function)

 

Animal Weight DietMammalColor
Tiger500meatBig BearWhite
Polar Bear1000fishAntelopeBrown
Deer150grassBig CatOrange

 

So, my table is disordered 

 

Is there a mapping I could do (not using fuzzy match) but actual mapping code or something I could write to make it so that I can put some kid of formula like "Tiger" = "Big Cat" and then if a new animal was added, I could just update that code or mapping template. Basically need to make sure the animal column is able to match the corresponding mammal column.

Ideally, I'd want my output to be like this:

 

Animal Weight DietColor
Tiger500meatOrange
Polar Bear1000fishWhite
Deer150grassBrown
2 REPLIES 2
alexnajm
18 - Pollux
18 - Pollux

Sounds like you need to create some sort of mapping file (either in Excel or via a Text Input) so Tiger can be mapped to Big Cat, Polar Bear to Big Bear, etc. Then a Join or a Find Replace can be used once you have that mapping

caltang
17 - Castor
17 - Castor

@PaladinKnight I see you made two posts of the same kind, reference here: https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/How-to-do-intermapping-within-...

 

My solution shares the same thinking as @alexnajm 

Calvin Tang
Alteryx ACE
https://www.linkedin.com/in/calvintangkw/
Labels
Top Solution Authors