Repeating a Combination of two panels together using repeating variables

I have a parent panel which consists of a table and I attached another child panel to it to show the counts and sums of the columns of the parent panel. However, when I apply repeat option to the parent panel using a variable, only the parent panel repeats. The child panel doesnt repeat along with the parent panel. I want the parent panel to repeat along with its corresponiding child panel. How to achieve this?

you can try a repeating row, then any panels on that row will repeat