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.

Choosing greatest number in multiple fields

Featured Replies

Hi,

I need to know if its possible to create a caculation field that compares mutiple of number fields and copies the greatest number to itself.

Example, I have "5" on "field_1", "10" on "field_2" and "15" on "field_3" last calculation field identifies which field contains highest number and copies into itself.

Please give me some idea how this caculation field can be created.

Thanks in advance!

Stuff like this is much easier when done with related records.

Many situations that use multiple fields to hold similar values are usually better off relational, because it's usually a many-to-many relationship.

Looping through related records is dead easy to script. It may even be possible to get the result with a calculation or summary field which will give the result instantly without having to generate it each time something changes.

Another, rather kludgy way is to use the "Case" statement -- it's a way of stringing together multiple "If" statements. If you only have three or four fields to compare with each other, it's fairly quick. If you have, say, 10 fields, I'd say Vaughan is right: find a way to use relationships.

Use the Max() function:

maxNum(calc,number) = Max(field_1, field_2, field_3)

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.