Collapsing repeating group cell by making it dynamic to content in cell

Why don’t you change the data source of the repeating group filtered off of the conditions? So instead of trying to hide things in the list, you don’t display them at all.

You can also check out the new masonry layout option as a potential solution.