Assistance: How to multiply group sum with a weight

I want to multiply group integers with a weight of 3. I did the following
(${Q6.1.1} + ${Q6.1.2} + ${Q6.1.3}) x 3

but got an error

ODK Validate errors:
org.javarosa.xform.parse.XFormParseException: Invalid calculate for the bind attached to "${ttl_grp_one}" : Couldn't understand the expression starting at this point: ...urvey/Q6.1.3 )?x3 in expression ( ${Q6}.1.1 + ${Q6}.1.2 + ${Q6}.1.3 ) x 3

How do i correct this?

Instead of x, use *.

Yaw

ยทยทยท -- Need ODK consultants? Nafundi provides form design, server setup, in-field training, and software development for ODK. Go to https://nafundi.com to get started.

On Fri, Sep 16, 2016 at 11:27 AM, dowsens@gmail.com wrote:

I want to multiply group integers with a weight of 3. I did the following
(${Q6.1.1} + ${Q6.1.2} + ${Q6.1.3}) x 3

but got an error

ODK Validate errors:
org.javarosa.xform.parse.XFormParseException: Invalid calculate for the bind attached to "${ttl_grp_one}" : Couldn't understand the expression starting at this point: ...urvey/Q6.1.3 )?x3 in expression ( ${Q6}.1.1 + ${Q6}.1.2 + ${Q6}.1.3 ) x 3

How do i correct this?

--

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.

1 Like

Thanks. Worked!!

ยทยทยท On Friday, September 16, 2016 at 9:20:45 PM UTC+2, Yaw Anokwa wrote: > > Instead of x, use *. > > Yaw > -- > Need ODK consultants? Nafundi provides form design, server setup, > in-field training, and software development for ODK. Go to > https://nafundi.com to get started. > > On Fri, Sep 16, 2016 at 11:27 AM, <dow...@gmail.com > wrote: > > I want to multiply group integers with a weight of 3. I did the > following > > (${Q6.1.1} + ${Q6.1.2} + ${Q6.1.3}) x 3 > > > > but got an error > > > > ODK Validate errors: > > org.javarosa.xform.parse.XFormParseException: Invalid calculate for the > bind attached to "${ttl_grp_one}" : Couldn't understand the expression > starting at this point: ...urvey/Q6.1.3 )?x3 in expression ( ${Q6}.1.1 + > ${Q6}.1.2 + ${Q6}.1.3 ) x 3 > > > > How do i correct this? > > > > -- > > -- > > Post: opend...@googlegroups.com > > Unsubscribe: opendatakit...@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...@googlegroups.com . > > For more options, visit https://groups.google.com/d/optout. >