Hi Alteryx Community,
I am working on an inventory management project and need assistance with calculating the closing inventory quantity and cost using the FIFO (First In, First Out) method in Alteryx. I have transaction records for three item codes, including opening and closing quantities and costs for each item.
Case Description:
For example, the item code VERNON has the following details:
To verify the accuracy, I manually tracked the remaining quantities from the latest purchases:
As per my manual analysis, the total quantity matches the closing entry, and the cost comparison has a negligible difference (0.000699999975040555), which is acceptable.
Attached Data:
I have attached an Excel file with two sheets:
Objective:
I need to replicate this FIFO analysis in Alteryx to assess the closing quantity and cost accurately for each item code without manually calculating each time. Specifically, I want to:
Request:
Could someone guide me on how to set up this workflow in Alteryx? Any suggestions on tools or configurations needed to automate this FIFO inventory costing method would be greatly appreciated.
Thank you in advance for your help!
Where are you in your workflow build? What kind of errors are you seeing?
@apathetichell I haven't created the workflow yet because I'm not entirely sure how to get started with this FIFO inventory costing method in Alteryx. I am struggling with conceptualizing how to set up the workflow to accurately calculate the closing quantities and costs based on FIFO.
The running total tool (grouped by inventory item) is very helpful. Play around with that and see how far you get.
The problem is the running total tool can't analyze the latest purchase near to closing quantity
Running total will allow you to "assign", and then you can use other tools to cut that at the right point based on formulas. If you wanted to do it all at once, then the Multi-row may work better but it will get more complicated.
There is a sample under "Help > Use Scripting... > Build a macro > Assign Supply to Demand" that does similar to what you are after here except deals with multiple locations and closest warehouse etc. It's a lot more involved than what you've described but might also give an idea to solve for your situation.
I would use a "Sort/Running Total/Filter" and then whatever else was needed after that allocation. The Running Total being the key in here and I believe that would be the method @apathetichell was referring too as well.