I have created a survey form for house hold members. I am using group having repetition because I don’t know how many member is there. I want to count their age group at the last of finishing entry group data.
Can u pls help me in this regard. Thanks in advance.
That is great!! “repeat_count” is very good attribute. Thanks a lot.
But I have different problem. May be I could not clarify it properly.
My problem is:
I have a repeated group where I am entering data of house hold members. Now, I have three age group: below 5, 5 to 14 and above 14.
When I entering age, I am using “calculate” to define this group. But at the end of group, I have to count
how many members are under 5 years
how many members are 5 to 14 years
and
how many members are above 15
Please help me regarding this.
Thanks a lot for your quick response and cooperation.
Recently I have to do a similar thing that might help you.
I’m suggesting to define some if conditions for all of the age groups, and summing up at the end of the form.
For example adding calculate questions for your age groups, like if( {age} <5, 1, 0 ) will result in 1 if the age is below 5 and 0 otherwise -which you can sum at the end of the form-
You might want to check these articles:
First article which shows how to create Dummy Questions and the second one shows the form operators
Earlier I had tried that one. It is helpful but not in repeat group.
I am working with position(…), join and count function. May be it will work, If it works then I ll let you know.
Wow!! That’s great!!
Last 2 days I was struggling with same logic but I was using count() function. And then I carried away and I have started using position(), join() and then count().
But you have done it beautifully simple and easy!!
Great!!
Thanks a lot for your help!!
N:B: Just look to my xls form… how I carried away in so complex!!