I want to connect multiple orders within one tabel with each other like a tree structure. I tried to do this with the hierarchy function, but im really struggling with this. I want to connect the orders based on a status and subNr. F.E. one order with subnr 123 and status IA falls under another order with the same subnr and Status IC. This orderNr could fall under another order as well etc.. I attached a example below. I hope someone can help me with this!