Be sure to review our Idea Submission Guidelines for more information!
Submission GuidelinesHi,
This idea is to suggest we add additional comparison capability to the Designer Join tool to more closely mirror what is possible in SQL. Usually, teams work around this limitation by adding tools after the Join tool (or using SQL queries at the start of a workflow), but it would be great to do this in the Join Tool itself.
The current Join Tool in Alteryx only allows for exact field comparisons, but not for more flexible joins, such as the example below
LOAD * FROM Table A
LEFT Join Table B
ON A.Firstname=B.FirstName
And A.Country <> B.Country
AND A.Lastname LIKE (B.Lastname)
OR A.Nationality = B.Nationality
I've drawn a mock-up of what I think could be enhancements to the existing tool. In simple terms, I think there are these options for improvement:
1. When joining on specific fields, allow the user to specify operators for how the fields should join, e.g. Field A=Field B and Field C !Contains Field D (almost like the Filter Tool does this). This could be enabled by permitting operators in the menu between the 2 fields, as illustrated below
2. Have the option to say that if either field matches, you'd like to join (i.e. option to choose if this is an AND or OR join condition). A new field would need to be made to the left of the field selection, as illustrated below
3. Perhaps there could be the option to write the expression as you would a formula for the Error message tool (but in a positive context), e.g. Field A != Field B
4. How about enabling the Left Join/Right Join/Full Outer Join options from within the Join tool? E.g. if you select the Venn Diagram buttons, you will return your selection? If you don't want to compromise existing capability, you can automatically add a pre-configured Union tool (with the correct left/right/join inputs) after the Join tool based on the user's selection?
Regards,
Tom
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.