May 02, 2019 12:16 PM
Is it possible to build a multi level bill of materials? Similar to this
May 02, 2019 07:59 PM
Not exactly as that diagram shows. Airtable’s records can’t be organized into a collapsible hierarchy. The closest you could get would be to add a field that specifies the “parent” record of a given item. For example, referring to your list, the “parent” for 8110-010 (Paint, Red) is the topmost BOM, 1080-000 (Red Wagon).
May 03, 2019 10:20 AM
Collapsible isn’t important to me, but the tiered or indented functionality would be important.
May 03, 2019 01:19 PM
Will this work? It plays off of the “parent” concept I mentioned previously, which will mean an extra step as you’re setting up your hierarchy because you have to choose the parent by its ID. I didn’t put in every row from your example, but enough to ensure that the hierarchy symbols build correctly.
I wish it were possible to do all of this inside the primary field, but unfortunately that’s something that can’t be worked around due to all the field and table referencing going on (i.e. problems with circular references). However, if it’ll work, I’ll break down the steps for you.
May 03, 2019 02:59 PM
Those seems Groups to me :man_shrugging:
May 03, 2019 03:23 PM
The grouping UI wrappers take up a lot more screen space. If you’ve got groups within groups within groups, all that extra space adds up.
On top of that, groups work on individual fields. To nest groups, each grouping level has to operate on its own field, which means adding more fields to the table and trying to figure out the grouping order to make it all work.
And to cap it all off, groups don’t work on mobile (yet).
This structure gives you something that kinda-sorta behaves like groups, but without the UI-real-estate or field-count overhead, and it will still work on mobile devices.
May 06, 2019 11:59 AM
I guess I probably wasn’t the clearest. Building the table itself shouldn’t be a problem, I’m more curious if its possible to generate a report that digs down and gets the children as a new row below. @Justin_Barrett - in your screenshot example, how would your table work if a component had 2 parents?
May 06, 2019 02:45 PM
To directly answer your final question, a component wouldn’t have two direct parents because it mimics the standard tree structure of the sample you posted originally, where any given item only has a single parent. However, to use the “Axel cap, red” item in that original diagram as an example, an item might be listed under more than one BOM (or assembly, to use the terminology of your second screenshot). That doesn’t mean it’s got two parents. It just means that some quantity of that item is needed in more than one assembly.
Your second diagram makes it a little more clear what you’re trying to accomplish, and also makes me think that the setup I proposed isn’t what you really want. However, there are still some fuzzy areas for me, the main one being why you’re tracking assemblies and parts in the same table. Again, I don’t have a complete grasp of what you’re aiming for, but based on what I understand now, my gut tells me that parts should live in one table, and assemblies in another. On top of that, I wouldn’t directly link to parts in the assemblies table. I would make a third table to do the connection, which would allow you to specify the quantity for each part tied to each assembly.
Here’s how these three tables might look. First the [Parts]
table:
Then the [Assemblies]
table, with the link field to the [Final Assembly]
table visible. (This field was hidden in the [Parts]
table, bit it’s also there.
And finally the [Final Assembly]
table, where you link to both of the other tables to indicate how many of each part is needed for a given assembly. (The first field is an Autonumber field for simplicity.)
Back in the [Assemblies]
table, the links from [Final Assembly]
will let you look up all of the linked parts, collect their quantities, etc. for reporting.
Will this work for what you need?
May 06, 2019 04:32 PM
What you said makes sense. I need to think and plan this out further.
Jan 29, 2020 03:06 PM
I am looking to understand the formula you have under the hood here in that Hierarchy field… i am assuming there is one (or multiple) hidden fields? been struggling to do something very similar to this this, but only really care what tier (how many indents in) a given record would be. Can’t figure out how to do this with a single formula.