Calculation, sum and filter in repeating group

LINK

Please help.

My app is for school doing a sports event. The students can engage in different activities one or more time with different point pr times.
The activities have different max number of times they can be done.
The dashboard I need help with has to be able to:
Sum up the students points to see who won.
filter on gender, age group and class or just show all.

Maybe my database setup is not optimal, maybe I need help there. :slight_smile: