1/10
Looks like no tags are added yet.
What was the BOM project?
• Consolidated product and raw-material data • Three Excel sources: BOM workbook, ERP product master, WIP journal export • Recipes spread across multiple linked formula tabs • Costs stored separately under different codes • Built workflow to expand formulas, match costs, validate data, calculate material costs
What were the three data sources?
• BOM workbook: recipes, component quantities, units, formula references • ERP product master: product codes, names, categories, costs • WIP journal: inventory movements, quantities, debits, credits
How much data did you process?
• 2,239 ingredient lines parsed • 361 BOM blocks • 139 final costed recipe rows • 6 products • 110 purchased materials
What was the main ETL challenge?
• No single consistent identifier across sources • BOM used internal ingredient codes • ERP sometimes stored costs under separate purchasing records • WIP embedded purchasing codes in text descriptions • Missing references and inconsistent formatting complicated joins
How did you handle inconsistent identifiers?
• Match BOM references to ERP records first • Use fallback name matching when references were missing or invalid • Extract purchasing codes from WIP descriptions • Trim whitespace • Standardize codes to uppercase • Flag ambiguous matches rather than silently accepting them
What is a recursive CTE, and how did you use it?
• SQL structure that repeatedly references its own results • Used to expand hierarchical product formulas • Followed nested formula relationships • Expanded formulas through multiple levels • Multiplied quantities at each level
Why multiply quantities at each BOM level?
• Subformulas describe ingredient quantities per gram of their own output • Need actual ingredient quantities in finished product • Multiply quantities down the formula chain • Ensures deeply nested ingredients are included
How did you validate BOM cost calculations?
• Compare WIP average values against ERP item costs • Check unit-cost plausibility • Verify ingredient quantities against finished-product fill weights • Compare material costs against standard product costs • Independently recalculated 2 products using separate Python logic • Results matched to 4 decimal places
What issues did the BOM workflow identify?
• Blank BOM references • Codes with extra spaces causing potential join failures • Incorrect units of measure • Chemical with unusually high cost per kilogram • Missing costed packaging record • BOM reference pointing to mismatched ERP product name
What was the impact of the BOM project?
• Generated costed recipes in seconds • Replaced manual navigation across multiple tabs • Made calculations easier to repeat and trace • Identified issues affecting cost totals • Proof of concept, not production deployment
What was your role versus Claude's role?
• Claude assisted with generating and executing much of the code • I directed the workflow • Defined transformations and validation checks • Reviewed matching logic • Approved assumptions and overrides • Examined outputs • Independently recalculated selected product costs