on 06-24-2020 05:01 AM - edited on 07-23-2021 09:05 AM by kcsrestapiuser
Joining fields with name changes and reordering can be tricky. It's important that the data from Join tool anchors have field names that allow the Union tool to stack the data appropriately.
PrerequisitesProcedure
If you've read the Tool Mastery article that covers the Join tool and then played with it on your own some, you've probably noticed some of its more subtle features. One is that Joining two tables can generate a staggeringly large number of rows. That's often due to selecting fields that have some repeated values, and is covered in a fine article titled "Why Your Join Is Getting More Records than Expected."
Sometimes you want to change the names of the various fields or change their order. If you are using the Join tool alone to work with just the J output (the Inner Join situation) you can do everything at once and use the "Select" functionality built into that tool. If you are using any other anchors from the Join tool, you'll need to add a Select tool or two to get the results you want because changes you make to the field names and their order within the Join tool configuration only apply to the data coming out of the J anchor. To fully understand this, let's look at the data from each anchor:
This was a really awesome read. Thank you for taking the time to put this together and for sharing with us!
Lisa: I came, I read, I didn't quite conquer! Maybe an Office Hours session would help clarify for me how the Union has to interact with Select and Join.
Office hours and working sessions, by any name, are best arranged through the Virtual Solution Center (VSC). Then you can share a screen with an Alteryx associate and ask questions with the workflows in front of you so you both can see exactly what you mean.