HI @Nazhur
Question about the data. When deleting the node, does it create a new row for n3 or does it add a new row for n3?
As for the solution i think you just need a calculated field that implements the logic you want to filter.
Have you tried creating an example in Arena? With that one detail on the data i can create and share an example here.