I am trying to get my views block to display terms under this parent term but only show the terms with nodes in them. I managed to get this to work by using the relationship content with term and requiring the relationship. However we have terms with children that are empty but the children are not empty. I want it to display the term(without showing the children)

How do I make my views block display terms under parent term, remove the empty terms but show the empty terms with children?