Jump to content

Sum calculation of repeating field


This topic is 3221 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Now don't jump all over me for using repeating fields.

I have done this in other FM tables but I've got a new one where it just isn't working.

I have an itemization list and cost in separate repeating fields, 10 reps.  I've done this before where I create a calculation field get the the Sum of the cost field.  Sum(ItemizationCost).

But in this new table it's not getting anything past the first iteration of the field.  I've tried various other scenarios all to no avail.  Everything is in the same table.

Any suggestions?

Link to comment
Share on other sites

a calculation field get the the Sum of the cost field.  Sum(ItemizationCost).

If ItemizationCost is a Number field (or a Calculation field with the result type set to Number), then Sum ( ItemizationCost ) should return the sum of all repetitions of ItemizationCost. This is assuming both fields are defined in the same table, and that you expect to see the sum of all repetitions in a single record.

Edited by comment
Link to comment
Share on other sites

That's exactly what I thought, but it's not happening.  The calculation is only returning the value in the first repeating field.  If I delete that first value and leave the rest, the calc returns nothing.

Don't use repeating fields.

Really!?!?  Like I needed that.  You're a big help.

 

Link to comment
Share on other sites

BruceR and Raybaudi,

You both could be right.  Perhaps I was zoned out when starting this; who knows.

I ended up deleting the 3 fields in question and starting over again.  Now it's all working as expected.   Go figure.

Thanks for your direction, it helped more than you know.

Link to comment
Share on other sites

This topic is 3221 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.