Searching for Data based on another set of data

This is probably really obvious - I have two data types (so far) in one a user picks the things they want to follow (which can be more than one thing) in the other we some data to display, based on what they have followed. The two data sets have some matching fields (in my case teacher and class - as this is a school system).

So I am using a repeating group to display the data - but cannot figure out how to get it to display data for all the groups they are following - however when I go for one group (shown below) it works. Any ideas?

Can you open your app temporarily and share a link so that other people can see it in edit mode? or it already has sensitive data?