Alteryx Designer Desktop Discussions

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

Allocation for employees

AbhijeetChib
8 - Asteroid

I have the below data set where "Duplicate Groups" are in pairs are evenly distributed across primary resources. I need an output where one pair of duplicate group is mapped to only one Primary resource. 

 

Duplicate_GroupPrimary Resource
207964Monty
207964Sam
207965Shawn
207965Kam
207966Monty
207966Sam
207967Shawn
207967Kam
207968Monty
207968Sam
207970Kam
207970Shawn
207971Monty
207971Sam
207972Shawn
207972Kam
207973Monty
207973Sam
207974Shawn
207974Kam
207975Monty
207975Sam
207976Shawn
207976Kam
207977Monty
207977Sam
207978Shawn
207978Kam
207979Monty
207979Sam
207980Shawn
207980Kam
207981Monty
207981Sam
207982Shawn
207982Kam
207983Monty
207983Sam
207984Shawn
207984Kam
207985Monty
207985Sam
207986Shawn
207986Kam
207987Monty
207987Sam
207988Shawn
207988Kam
207989Sam
207989Monty
207990Shawn
207990Kam
207991Monty
207991Sam
207992Shawn
207992Kam
207993Monty
207993Sam
207994Shawn
207994Kam
207995Monty
207995Sam
207996Shawn
207996Kam
207997Monty
207997Sam
207998Shawn
207998Kam
207999Sam
207999Monty
208000Shawn
208000Kam
208001Monty
208001Sam
208002Shawn
208002Kam
208003Sam
208003Monty
208004Shawn
208004Kam

 

In the above data set, the allocation for all 4 resources is equally distributed. 

Primary AssignedCount
Sam20
Kam20
Shawn20
Monty20

 

However, if you see their Duplicate groups are different. For example in the below data set 207964 has Monty and Sam both. I need to either make it Sam or Monty.

207964Monty
207964Sam

 

Expected Output

Duplicate_GroupPrimary Resource 
207964MontyMonty
207964SamMonty
207965ShawnShawn
207965KamShawn
207966MontySam
207966SamSam
207967ShawnKam
207967KamKam

 

 

Every pair of duplicate group needs to be mapped to any one resource, but the total allocation numbers needs to remain the same. 

4 REPLIES 4
Tam
9 - Comet

@AbhijeetChib assuming there is no difference whether it's Sam or Monty gets assigned to 207964 the Unique tool and a join tool should do the trick.

 

HTH 

 

regards 

Tam 

 

gawa
15 - Aurora
15 - Aurora

hi @AbhijeetChib 

 

Please try the attached WF if it fits to your real data or not.

 

image.png

AbhijeetChib
8 - Asteroid

Thanks @Tam 

 

When i summarize your allocation this is what I get. 

Although the Duplicate Group are assigned perfectly but the count of allocation is not evenly distributed. I need to make them even. 

Kam - 10, Monty - 10, Sam - 10, Shawn -10 

 

Right_Primary ResourceCountDistinct_Duplicate_Group
Kam1
Monty17
Sam3
Shawn19
Tam
9 - Comet

Thanks for pointing it out, I miss understood your ask.

Anyhow looks like @gawa solution worked. 

 

 

-r

Tam

 

Labels