Alteryx Designer Desktop Discussions

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

Allocation of data

praneshsapmm
8 - Asteroid

hi ,

 

I have this requirement of allocation of invoices to the team members . There 4 team members and invoices need to be allocated. 

 

Let me say they are A,B,C,D and if the number of invoices equally divided among 4 then no problem .But if it is not the invoice remaining invoices  must be allocated beginnning from A as show below : 

 

How this can be done in alteryx.

 

Scenario 1   Scenario 2 
     
# of invoices 100 # of invoices 102
A25 A26
B25 B26
C25 C25
D25 D25
3 REPLIES 3
DataNath
17 - Castor

Hey @praneshsapmm, how does this look? Let me know if you run into any issues when applying this - just need to bring your # of invoices alongside the records:

 

Uneven split:

 

DataNath_4-1663326037095.pngDataNath_3-1663326011658.png

 

Even split:

 

DataNath_1-1663325983305.pngDataNath_2-1663325989786.png

praneshsapmm
8 - Asteroid

Hi @DataNath ,

 

That worked perfectly . Thanks . 

 

Also i have another extension to below requirement . once the allocation is done based on the number of invoice allocation to user , name has to be populated against invoice line items . For ex : A is 26 invoice below , based on this info how can stamp A against each invoice line item 26 times. 

 

Scenario 1   Scenario 2 
     
# of invoices 100 # of invoices 102
A25 A26
B25 B26
C25 C25
D25 D25
     
Invoice1A   
Invoice2A   
Invoice3A   
Invoice4A   
Invoice5A   
Invoice6A   
Invoice7A   
Invoice8A   
praneshsapmm
8 - Asteroid

Hi @DataNath ,

 

You helped me sometime ago to solve issue with allocation of invoices . Thanks for that . There is small change in the requirement as mentioned . Can you help to refine the macro . Requirement is : 

 

Total number of invoices : 122  
Ccode A30
 B20
 C40
 D32
 total 122
Allocation to happen   
Coder CcodeInvoices
1A15
2B15
3C40
4D32

 

Now the allocation need to happen for the combination of coder and Ccode as show above . Any possibility to change the macro.

 

Many Thanks .

 

Labels