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

Alteryx Designer Desktop Discussions

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

Help! Make Groups Tool - Results switching Key and Group values

diane_mosley1
5 - Atom

I am building a workflow intended to find and groups records with the same company name, choose a surviving record based a priority matrix, and then remove the other duplicate records.  In reviewing the Make Group results, I'm noticing instances where the Make Group tool has switched the Key and Group values in the results.  

 

Here's the workflow so far:

 

diane_mosley1_0-1644661173168.png

It takes in the company list, normalize the the name, use the Only Unique tool and send duplicate sets to the make group tool. 

 

Here's a snippet of data sent from the Only Unique tool to the Make Groups tool, which groups the Entity IDs by Legal Name

 

diane_mosley1_1-1644661421965.png

 

Here's a snippet of the data coming out of the Make Groups tool for records 6 and 7 from the above snippet.

diane_mosley1_3-1644662261717.png

 

Here's another snippet showing both both the correct and incorrect grouping.  The first sets of records 58 - 67 are grouped accurately with the Legal Name as the Group and the IDs as the Key.  But notice the group 68 - 72 -- the group name should be KEMIE GROEP BV, instead the tool assigned one of the entity IDs as the group name. 

 

Am I doing something wrong that would cause these results?  What's the easiest way to fix the results?  Basically, where the group name contains the entity id prefix of AFF, ACG, UPC, or REL I would want the group name replaced with the associated record that does NOT contain the entity id prefix of AFF, ACG, UPC, or REL.

 

diane_mosley1_2-1644661671210.png

 

3 REPLIES 3
danilang
19 - Altair
19 - Altair

Hi @diane_mosley1 

 

Can you include some sample data to demonstrate the problem?

 

Thanks

 

Dan

diane_mosley1
5 - Atom

Attached.  thanks!

danilang
19 - Altair
19 - Altair

Hi @diane_mosley1 

 

You've attached the workflow, but not the input file, "EMS Entities_NLD...xlsx".  you need to iinclude the entire file, just enough to demonstrate the problem

 

Dan

Labels
Top Solution Authors