Hiding a table when no rows exist

Ah, so to achieve this I think you might be better off with two separate tables: one contains your base parts, the other will contain your assemblies.

That way you can build up assemblies with however many parts and display information only pertinent to assemblies, rather than mixing the two. You can also have larger assemblies built out of smaller ones.

All of this said, you might be able to formulaically control which layout is shown with this trick: