Skip to main content
richard_valentine
Participant
June 23, 2016
Answered

Simple Multiply Fields adding additional calculations.

  • June 23, 2016
  • 1 reply
  • 1278 views

I have 11 fields that are setup to multiply from field a, to field b. This is a very basic calculation (Dropdowna, hrs1), (Dropdownb, hrs2) and so on. They calculate just fine with inputting data, but when data is changed or added to any other part of the form, the amounts are somehow added to these very basic calculations as a new total and they seem to continue to multiply, producing incorrect results. Any ideas? I'm having major issues here with what should be a very simple task. Calculations are shown in the "Services Needed" columns in the attached image. Thanks in advance!

Rich Valentine

This topic has been closed for replies.
Correct answer try67

Yes. It is a dropdown which is selected, and then multiplied by another value (hrs multiplied by service requested). What am I missing?


It doesn't make sense. Each time the calculation takes place (which happens each time any field in the file is changed) it will become exponentially bigger.

Your formula is basically: X = X * Y

So if at first X is 1 and Y is 2 the result is 2, but then it will be 4 (2 * 2), 8 (4 * 2), 16 (8 * 2), etc.

You can't include the value of a field in its own calculation. That's circular logic.

1 reply

try67
Community Expert
Community Expert
June 23, 2016

How did you set up the calculations? Did you use a script? If so, post your code. If not, please describe what you did.

richard_valentine
Participant
June 23, 2016

I did not use a script. I named the fields, each with a different name of course, and then went to properties, calculate and selected "product (x" from the value is radio button, and then selected the two relevant fields using the "pick" feature. Please see attached.

Rich

try67
Community Expert
Community Expert
June 23, 2016

So the value of the field is its own value multiplied by another field's value? Don't you see the problem there?