Free Trial

Alteryx Designer Desktop Discussions

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

Filling up "buckets" based on bucket constraints

YLYONG
9 - Comet

Hi Alteryx Community,

Need your assistance to assign the SKUs to the corresponding Load ID based on load constraints:

I have attempted below; however, I believe there are other smarter ways to go about achieving the intended output 😀

 

Thank you

 

YLYONG_0-1671512716605.png

 

 

PERIODDAYSVENDOR_NAMEmaximum PALLETS per loadmaximum SKUs per loadLoad ID
Week 1MonAPPLE2251
Week 1TueAPPLE2252
Week 1TueAPPLE2253
Week 1WedAPPLE2254
Week 1ThuAPPLE22510
Week 1ThuCARROTS22511
Week 1ThuCARROTS22512
Week 1ThuCARROTS22513
Week 1ThuCARROTS22514
Week 1ThuCARROTS22515
Week 1ThuCARROTS22516
Week 1ThuAPPLE22517
Week 1FriAPPLE22518
Week 1FriAPPLE22519
Week 1FriAPPLE22520
WEEK 6WedCOCA COLA7724
WEEK 7WedCOCA COLA3325
WEEK 8WedCOCA COLA22626
WEEK 9MonCOCA COLA22627
WEEK 10TueCOCA COLA6228
WEEK 11ThuCOCA COLA22729

 

 

SKUsvendorPALLETS
4574634APPLE20
4574635APPLE5
4574919APPLE4
4614650APPLE6
4615970APPLE9
4616112APPLE10
4616484APPLE6
4616564APPLE8
8211473APPLE1
8211586CARROTS20
3811906CARROTS5
3938736CARROTS4
4230884CARROTS6
4460625CARROTS9
4722460CARROTS10
4868589CARROTS50
4868590CARROTS6
4969939COCA COLA10
4970122COCA COLA20
4970155COCA COLA5
4973641COCA COLA4
4 REPLIES 4
ShankerV
17 - Castor

Hi @YLYONG 

 

Could you please share the expected output, will be easy to derive solution.

 

Many thanks

Shanker V

YLYONG
9 - Comet

@ShankerV 

 

here is it: the expected output is the Load ID against each SKU 

 

SKUsvendorPALLETSEXPECTED OUTPUT: Load ID
4574634APPLE201
4574635APPLE52
4574919APPLE42
4614650APPLE63
4615970APPLE94
4616112APPLE104
4616484APPLE63
4616564APPLE82
8211473APPLE11
8211586CARROTS2011
3811906CARROTS512
3938736CARROTS412
4230884CARROTS612
4460625CARROTS913
4722460CARROTS1013
4868589CARROTS5014,15,16
4868590CARROTS612
4969939COCA COLA1024
4970122COCA COLA2025
4970155COCA COLA524
4973641COCA COLA426
5067712COCA COLA624
5101424COCA COLA926
5226408COCA COLA1027
5764614COCA COLA526
ShankerV
17 - Castor

Hi @YLYONG 

 

If you are expecting output similar to the below.

 

PERIODDAYSVENDOR_NAMEmaximum PALLETS per loadmaximum SKUs per loadLoad IDSKUs
Week 1MonAPPLE22514574634
Week 1TueAPPLE22524574635, 4574919, 4614650
Week 1TueAPPLE22534615970, 4616112
Week 1WedAPPLE22544616484, 4616564, 8211473
Week 1ThuAPPLE22510 
Week 1ThuCARROTS22511 
Week 1ThuCARROTS22512 
Week 1ThuCARROTS22513 
Week 1ThuCARROTS22514 
Week 1ThuCARROTS22515 
Week 1ThuCARROTS22516 
Week 1ThuAPPLE22517 
Week 1FriAPPLE22518 
Week 1FriAPPLE22519 
Week 1FriAPPLE22520 
WEEK 6WedCOCA COLA7724 
WEEK 7WedCOCA COLA3325 
WEEK 8WedCOCA COLA22626 
WEEK 9MonCOCA COLA22627 
WEEK 10TueCOCA COLA6228 
WEEK 11ThuCOCA COLA22729

 

 

 

It can be achieved with the help of Batch Macros, 

https://community.alteryx.com/t5/Alteryx-Designer-Knowledge-Base/Getting-Started-with-Batch-Macros/t...

 

If you believe this post it helpful please like it.

Also please mark helpful answers as a solution so that future users with the same problem can find them more easily!!!!

 

Many thanks

Shanker V

YLYONG
9 - Comet

impressive! is there another way around besides using batch macros, it may be as perfect, but still works?

 

Labels
Top Solution Authors