Bring your best ideas to the AI Use Case Contest! Enter to win 40 hours of expert engineering support and bring your vision to life using the powerful combination of Alteryx + AI. Learn more now, or go straight to the submission form.
Start Free Trial

Alteryx Designer Desktop Discussions

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

Allocation of groups

QurrathAmeena
8 - Asteroid

Hi All!

 

I am trying to update the existing column based ob some condition.

 

This is the input data :

Groupclassroll_no
aaa1
 b2
aac3
 d4
 e5
aaf6
 g7
ach8
aai9
acj10
ack11
acl12
acm13
acn14
 o15
 p16
acq17
acr18
aas19
 t20
 u21
 v22
 w23
 x24

 

countgroup
5aa
8ac

 

What I'm trying to get in the output is if the count of group is less than 9 , I'll assign the unassigned roll_no in ascending order to those groups.

This is how the output be like:

Groupclassroll_no
aaa1
aab2
aac3
aad4
aae5
aaf6
aag7
ach8
aai9
acj10
ack11
acl12
acm13
acn14
aao15
acp16
acq17
acr18
 s19
 t20
 u21
 v22
 w23
 x24



As I'm still a new learner ,this solution would be of great help ,Thanks in advance 🙂 

3 REPLIES 3
Qiu
21 - Polaris
21 - Polaris

@QurrathAmeena 

2 questions

  • It seems you assigned 8 aa, which your 2nd table says 5
  • why the last RollNo#24 is not getting assigned?
QurrathAmeena
8 - Asteroid

@Qiu 
Hi,
Thanks for pointing that out, I have corrected the output what I want , 
Also, I'm trying to first assign based on roll_no.

 

For example : if roll_no 20 is not assigned roll_no 21 cannot be assigned .

The count of groups should not be more than 9,the unassigned ones are hence left blank.

Qiu
21 - Polaris
21 - Polaris

@QurrathAmeena 

Something does not add up to me yet.

Anyway, I interpret less than 9 meaning only 9 count can be assigned from top, so only 4 ac can be assigned.

0215-QurrathAmeena.PNG

Labels
Top Solution Authors