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.
SOLVED

How to assign n no.of people to a list of records equally

toxicboy
6 - Meteoroid

Hi All,

 

I have a user details where name of users are provided and the numbers of user can change time to time. I need to assign them almost equally to a list of records.

Ex:

User
John
Matt
Stacy
Angie
Chris

 

 

And data records are like:

idprocess_datePriority
124-Jan-24P1
211-Jan-24P1
32-Feb-24P2
424-Mar-23P2
519-Sep-22P3
609-Mar-23P1
711-Aug-23P3
824-Mar-23P2
911-Jan-24P1

 

I want to assign the 5 names equally to the above list, as below.

idprocess_datePriorityAssignee
124-Jan-24P1John
211-Jan-24P1Matt
32-Feb-24P2Stacy
424-Mar-23P2Angie
519-Sep-22P3Chris
609-Mar-23P1John
711-Aug-23P3Matt
824-Mar-23P2Stacy
911-Jan-24P1Angie

 

Appreciate your help in advance

4 REPLIES 4
caltang
17 - Castor
17 - Castor

Something like this?

image.png

Calvin Tang
Alteryx ACE
https://www.linkedin.com/in/calvintangkw/
DataNath
17 - Castor
17 - Castor

Hey @toxicboy, how's something like this? To explain the workflow we:

1) Get the count of records, and count of users

2) Append these so we can divide one by the other and take the ceiling value as the # of rows of the user list we need to generate

3) Generate these additional user rows and then re-split them into rows

4) Join with the starting records based on record position

 

Hope this helps!

 

555.png

aatalai
15 - Aurora

You could use a count record tool from the number of users and then plug that into a macro with the tile tool and use the count number of records to update the grouping

toxicboy
6 - Meteoroid

Thanks, the solution worked for me.

Labels
Top Solution Authors