Coalesce function is not working

Hello again dear colleagues, I am still having problems with the function of being able to add the registered participants by gender.
The form can collect information from different actors or participants, for example: 1: teachers, group 2: children, group 3: adolescents.
For each participant you must enter the participants, for this I have created groups that can be repeated “n” number of times according to the needs of the moment. In each group data is collected, including the sex of the participant.
At the end I need to add the participants by sex, of all the groups that have been registered.
The problem that exists is that it only takes into account the first registered participant, that is to say, if you select the first group, it only adds up to the first registration and does not count the subsequent registrations.

I have checked if the expressions are ok, but I can’t find why it doesn’t add up correctly. could you check the XLS? I have marked with colors the variables that should add up so you can easily identify them.
FICHA REGISTRO CAPACITACIONES, TALLERES U OTRAS ACTIVIDADESv3.xlsx (29.1 KB)

Hope you can help me.

Thank you in advance