Regarding BMI Calucation

Hi iam new to commcare I had build a form but i need to put BMI
caluclations which was getting error can u please help me out

Hi Raj –

Well, the normal way to have commcare do a mathematical calculation is by
using a “hidden value” field, where you type in a formula that uses the
information that was entered into the other fields.

Is that the method that you used?

If you did… can you reply here, and paste the formula that you put into
that “hidden value” field? There are a lot of awkward rules about the way
the formula must be entered… I bet it is a simple issue of the way that
you entered the formula.

Also, you might want to read through this page that I am linking below, and
also, at the bottom of that page, also click on the link that says "Part 1"
and read that page also:

https://confluence.dimagi.com/display/commcarepublic/Hidden+Value+Calculations+Tutorial

hi eric

the formula calucation used (/data/weight//data/height)*703

Thanks

··· On Friday, June 10, 2016 at 10:47:36 AM UTC+5:30, Eric Stephan wrote: > > > Also, you might want to read through this page that I am linking below, > and also, at the bottom of that page, also click on the link that says > "Part 1" and read that page also: > > > https://confluence.dimagi.com/display/commcarepublic/Hidden+Value+Calculations+Tutorial > > >

Hello Raj,

I suggest reviewing the link that Eric shared as well as this reference
page:
https://confluence.dimagi.com/display/commcarepublic/CommCare+Functions

In the example you shared it looks like you are trying to use “/” for
division, but CommCare syntax for division is “div”

Hope this helps,

Jeremy

··· On Fri, Jun 10, 2016 at 2:14 AM, raj kumar wrote:

hi eric

the formula calucation used (/data/weight//data/height)*703

Thanks

On Friday, June 10, 2016 at 10:47:36 AM UTC+5:30, Eric Stephan wrote:

Also, you might want to read through this page that I am linking below,
and also, at the bottom of that page, also click on the link that says
"Part 1" and read that page also:

https://confluence.dimagi.com/display/commcarepublic/Hidden+Value+Calculations+Tutorial


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


Jeremy Wacksman
Dimagi http://www.dimagi.com, Inc.