I am getting an error Type mismatched you may need to use indexed-repeat function() while building a medical camp form

Dear all, I am trying a build a form to enter medical camp details , like number of male patients , female patients by using repeat group function and i need to calculate total number of patients treated among all repeat groups. while using sum() function i am getting an error of type mismatch use indexed-repeat function(). i don't know where i need to put indexed repeat() to calculate all elements. here i am attaching built form please help thanks in advance
medical camp.xlsx (9.6 KB)

Hi @nareshp

like in the doc https://docs.opendatakit.org/form-repeats/#id6 your sum() calculations should be out of the group.
Here is your fixed form: medicalcamp.xlsx (8.3 KB)

2 Likes

Its working Thanks alot Grzegorz Orczykowski

1 Like