Cast your vote for the official 2025 Inspire Pin! Designs were submitted by fellow Community members and reflect the creativity and passion of Alteryx users across the globe. Vote now!
Free Trial

Alteryx Designer Desktop Discussions

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

Reduce value in a row by other values in that row

BrianW13
5 - Atom

Working on a project to try and reduce excess stock by moving it to regions that will need the stock. Have gotten to a list of several materials in several regions with the stock that needs to be moved or the stock the region needs moved in. Looking for a process to reduce the values a material has in plants that have excess to the plants that need the stock. Depleting all the stock in the plant with the most excess first and then moving to the next plant. Filling only what is needed in the plants that need stock. For example, below the material S60 in plant 33 would move 3261 to plant 73 then 568 to plant HD and so on until the excess stock in 33 has been depleted. Then the tool would start pulling from the next plant 41. This process would have to work through several different materials.

 

 

MATERIALPLANTWEEKMOVE/NEEDOVER/UNDER MAXCAP
S60338/23/2021MOVE11182
S60418/23/2021MOVE3656
S70HF8/23/2021MOVE2842
S70OC8/23/2021MOVE2243
S70MH8/23/2021MOVE1790
S70218/23/2021MOVE1007
S60HB8/23/2021NEED-204
S60438/23/2021NEED-421
S60HD8/23/2021NEED-568
S70738/23/2021NEED-1058
S70CG8/23/2021NEED-1134
S70448/23/2021NEED-1814
S70418/23/2021NEED-1971
S60738/23/2021NEED-3261
4 REPLIES 4
Luke_C
17 - Castor
17 - Castor

Hi @BrianW13 - what would you expect an output to look like?

BrianW13
5 - Atom

Something like this

 

MATERIALDELIVERY PLANTRECEIVING PLANTQTY
S6033733261
S6033HB204
S603343421
S6033HD568
S70HF411971
S70HF44511
S70OC441303
S70OCCG940
S70MHCG194
S70MH731058
BrianW13
5 - Atom

Something like this

 

MATERIALDELIVERY PLANTRECEIVING PLANTQTY
S6033733261
S6033HB204
S603343421
S6033HD568
S70HF411971
S70HF44511
S70OC441303
S70OCCG940
S70MHCG194
S70MH731058
EricDavis
7 - Meteor

Did you get a solution for this? I have similar issue.

Labels
Top Solution Authors