Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

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

Recommended Posts

Posted

I am having a problem with a calculation that is not working on the repetitions of a repeating field.

it is to track a magazine subscription info. it works like this:

1. a date is entered in the 'invoice paid date' field

2. a field called 'first sub issue' then looks up the next value in another table which has all the dates for every issue published. [ie, if invoice was paid on 10/5/2004 and the next issue was published on 20/5/2004 and this is issue number 4, this will be the calculation result.]

3. a field called 'last sub issue' simply calculates 'first sub issue'+9.

This all works perfectly in the first repetition of the fields, but not in any of the others - even if i use exactly the same date that worked in the first. it just doesnt lookup the issue numbers.

all of the fields in question are repeating, and i even tried setting the fields in the lookup table to be repeating, in case that would fix it, but it made no difference.

any help much appreciated! is there a better way i should do this?

Posted

Repeating fields calculate data in a straight line. Field_A [5] (Field_A [repetition number 5]) can be used in a calculation for Field_B [5]. If the 'first sub issue' field is not a repeating field (first sub issue [1]), it cannot be used in calculation for Field_B [5]. To allow 'first sub issue' [1] to be used in other repetitions use the Extend ( non-repeatingField ) function.

Extend ( first sub issue ) + 9

Posted

all of the fields in question are repeating.

i think it's the lookup that's failing, rather than the subsequent (first sub issue + 9) calculation.

i did try extending the fields in the table being looked up, but then the lookup didnt work at all! (ie, not even in the first repetition)

Posted

ive got it to work by making the lookup fields repeating and just copying the values from the first repetition into all the others. seems like a cumbersome solution, but at least it works!

Posted

"Any other suggestions? i need the repeating fields to keep track of subscriptions over multiple years."

No, you do not need repeats for this purpose. The difficulty you are experiencing comes with the territory when using repeats. Time to learn more about how to use relational design.

This topic is 7407 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.