I want to set a checkbox for all the children through multiple heirarchy based on the value in another column.
If you look at the attached examples, if the parent value for active is N/A then that row and all it's children should be checked, including any parents with children within that heirarchy.
I have three additional columns that count ancestors, count children and also the row number.
I need help with the code to set checkbox column

