ACT NOW: The Alteryx team will be retiring support for Community account recovery and Community email-change requests Early 2026. Make sure to check your account preferences in my.alteryx.com to make sure you have filled out your security questions.
Learn more here
No macro, just simple maths. Combine store & orders, to be able to sort on priority and item, then add a runningsum per item. Then combine this with the warehouse - stock data, add a formula to check stock against that runningsum, when stock is higher, fill entire order. When stock is lower, check if the line can be partially filled, otherwise 0. Then just a sort and select to present the data as requested.