Hide parents with no child in report's table group

Hi everyone,

I’m using table groups and nested queries in the reports module.

Some of the child queries may return 0 rows. Then I would like to hide the parent in the table group when that situation occurs. Otherwise I will get parent rows with no content in the table group.

Is it possible to hide those parents dinamically?

Thanks in advance.