Alteryx Designer Desktop Discussions

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

Random names considering percentage

vmanika8
7 - Meteor

Hello All,

 

I have a data set as per attached excel, i need to allocate people name to the "blank" items based on Region/percentage given against each person.(in text tool). :let me know the possible way to do that. Thank you.



7 REPLIES 7
ShankerV
17 - Castor

Hi @vmanika8 

 

One way of doing this.

 

ShankerV_0-1683794530650.png

 

Many thanks

Shanker V

 

ShankerV
17 - Castor

Hi @vmanika8 

 

Step 1: Input

 

ShankerV_0-1683794577482.png

 

Step 2:

 

ShankerV_1-1683794605026.png

Step 3: 

ShankerV_0-1683794648067.png

ShankerV_1-1683794665698.png

 

Step 4:

ShankerV_2-1683794685237.png

ShankerV_3-1683794693709.png

 

Many thanks

Shanker V

FinnCharlton
13 - Pulsar

Hi @vmanika8 , here's a way to do this that retains your initial count of Regions:

FinnCharlton_0-1683794713419.png

The method is the same as @ShankerV , but we add in a step to check that the count has been maintained. If it hasn't, the leftover row is assigned to the person with the highest percentage.

Hope this helps!

ShankerV
17 - Castor

Hi @vmanika8 

 

Step 5: 

 

ShankerV_0-1683795126919.png

ShankerV_1-1683795150991.png

 

 

Step 6:

ShankerV_2-1683795171284.png

ShankerV_3-1683795183934.png

 

Step 7:

 

ShankerV_4-1683795202592.png

 

ShankerV_5-1683795212971.png

 

Many thanks

Shanker V

vmanika8
7 - Meteor

Thanks for your workflow @FinnCharlton    

 

however, your workflow has decimal issue when we have odd number to multiply with percentage it is leaving remaining items open.

vmanika8
7 - Meteor

Hello @ShankerV  Can you pls upload your workflow. Let me check your flow as well?

vmanika8
7 - Meteor

I have one more requirement to the existing request. Now the data looks in this way with record ID which enable me to link this particular data with the original one. Can we do this ? @ShankerV  Your response is highly appreciated

Labels