Calculations on select multiple

Thanks Yaw again for this.
Actually I am using XLSForms and not able to get the proper result as may
be not using it properly.
Please help.

··· On Aug 30, 2015 8:01 PM, "Yaw Anokwa" wrote:

Oh, it's a select_multiple. Try using selected-at (see
https://opendatakit.org/help/form-design/binding/) to get the values
at 1-6 and then add them up that way.

Yaw

Need ODK services? http://nafundi.com provides form design, server
setup, professional support, and software development for ODK.

On Sun, Aug 30, 2015 at 9:20 AM, Naveen Agarwal naveagar@gmail.com wrote:

Thanks Yaw.

I had seen it not able to use it as need to read each values for select
multiple.

On Aug 30, 2015 6:12 PM, "Yaw Anokwa" yanokwa@nafundi.com wrote:

Naveen,

See http://xlsform.org/#calculation

Yaw

Need ODK services? http://nafundi.com provides form design, server
setup, professional support, and software development for ODK.

On Sun, Aug 30, 2015 at 6:55 AM, Naveen Agarwal naveagar@gmail.com wrote:

Hi,

I am designing a questionnaire in which for every question there are
some
marks. In this questionnaire, one question has multiple options and
user
can
select any number of options. On the basis of his/her selection I need
to
calculate the score e.g.

I had asked "Have any of your blood relatives ever been diagnosed with
diabetes? (Check ALL that apply)" and options are

  1. Mother (2 points)
  2. Father (2 points)
  3. Brothers/Sister (2 points)
  4. Children (2 points)
  5. Other (0 point)
  6. No/don't know (0 point)

Now suppose user chooses 2 options from above i.e. Mother and Children
then
his/her score should be 4.

How I can achieve it? I am using XLSForms.

Regards, Naveen
World Health Organization, India.

--

Post: opendatakit@googlegroups.com
Unsubscribe: opendatakit+unsubscribe@googlegroups.com
Options: http://groups.google.com/group/opendatakit?hl=en


You received this message because you are subscribed to the Google
Groups
"ODK Community" group.
To unsubscribe from this group and stop receiving emails from it, send
an
email to opendatakit+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--

Post: opendatakit@googlegroups.com
Unsubscribe: opendatakit+unsubscribe@googlegroups.com
Options: http://groups.google.com/group/opendatakit?hl=en


You received this message because you are subscribed to a topic in the
Google Groups "ODK Community" group.
To unsubscribe from this topic, visit
https://groups.google.com/d/topic/opendatakit/E78pnxjr4WE/unsubscribe.
To unsubscribe from this group and all its topics, send an email to
opendatakit+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--

Post: opendatakit@googlegroups.com
Unsubscribe: opendatakit+unsubscribe@googlegroups.com
Options: http://groups.google.com/group/opendatakit?hl=en


You received this message because you are subscribed to the Google Groups
"ODK Community" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to opendatakit+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--

Post: opendatakit@googlegroups.com
Unsubscribe: opendatakit+unsubscribe@googlegroups.com
Options: http://groups.google.com/group/opendatakit?hl=en


You received this message because you are subscribed to a topic in the
Google Groups "ODK Community" group.
To unsubscribe from this topic, visit
https://groups.google.com/d/topic/opendatakit/E78pnxjr4WE/unsubscribe.
To unsubscribe from this group and all its topics, send an email to
opendatakit+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.