I received this solution from an AirTable developer via email:
Hmm, while what you want is possible, this is also not really how Airtable is intended to be used and so I would generally advise against it.
That said, assuming that the total types of "Rings" and "Hard Parts" rarely changes, then this can be done by:
1. Linking every record in "Orders" to every record in "Inventory Synced"
2. For each inventory item, create a single rollup field in "Inventory Synced" that will have a formula of "SUM(values)" and a conditional to only include Orders where "Parts Binned" is X
3. Finally, create the `Required Parts for Non-Binned & Non-Assigned Projects` field as a formula field with the following format, where you would have to add in the inventory item name followed by the rollup field:
SWITCH(
Name,
"12 Bisque Swag", {12 Bisque Swag Rollup (from Orders)},
"12 Bisque C/N", {12 Bisque C/N Rollup (from Orders)}
)
You could use an automation that will trigger whenever a new order gets created to link all your inventory records to that new order, and so everything will be automated. This would be done via a "Find record", "Update record" action. Note that "Find record" can only find a maximum of 100 records, so if you have more than 100 inventory records you'll need to add another "Find record" set of steps; simple enough to do
I've built this for you
here and you can duplicate it to look at the setup, formulas etc
----
I would like to again advise against the above, however. Doing this technically works, but makes it somewhat clunky to deal with the data and will probably negatively impact features you might want to add in the future. The advised way to do this would be with a junction table, where each record represents a single inventory item, the order it's tied to, and the quantity required for that order.
We could then do a rollup quite simply, and it's much much easier to set up and maintain as well.
I've set this up
here for you to check out