Jump to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Separate calculations for a repeating calc. field?

Featured Replies

Is it possible to define separate calculation formulas for a repeating calculation field? e.g. a+b for rep. 1; a-b for rep 2; a*b for rep. 3 etc.

(I do not envisage using any scripts like SetField.)

csb

ps. If this is not possible what is the usefulness of a repeating calculation field?

Yes, it's not too difficult. You'll need another repeating field (call it repNum) with as many repetitions as you need calculations. This can be a global if you don't need to store the results. The first repetiton will contain the number 1, the second 2, and so forth. Then your calculation will be Choose( repNum - 1, a + b, a - b, a * b, ... ).

Or you could have repNum as 0, 1, 2, etc. and use Choose( repNum, a + b, a - b, a * b, ... )

The best use for repeating calcs is in calculations that increment or decrement. Instead of making a long hardcoded calc such as

Left( field, 1 ) & "

  • 1 month later...

Queue

Get(CalculationRepetitionNumber) only works for version 7. The repnum field is necessary for earlier versions.

For 7 you can use Get(CalculationRepetitionNumber) - 1 for the test portion of Choose and eliminate the need for the zero result of "", similar to the repnum - 1 test shown above.

Create an account or sign in to comment

Important Information

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

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.