Skip 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.

need to validate calculated field is unique

Featured Replies

I have a field that calcuates a sum, but I need to validate that the sum is unique.

The calculation is based on four other fields. It is:

(FIELD1*100000000)+(FIELD2*100000)+(FIELD3*1000)+FIELD4

It generates a "unique" 11-digit ID based on the four separate fields, but as a regular calculation, it is possible to have duplicates, which I can't allow.

Even if I had to add a field that performed a logical test like "Is FIELD6 unique?" with a YES/NO as the answer displayed in a field next to the "unique" ID field.

Any suggestions?

Thanks,

Thomas

Edited by Guest

To answer the question, you could create a self-join on the calculated field, and use validation to test whether there are entries on the other end of the relationship.

The deeper question would be to ask you why you need this calculated field to be unique. If you're using it to form relationships, you might be better off using a true unique serial number rather than some calculated value that might repeat.

David

  • Author

How does one create a self-join?

To answer your question about why is it unique, I have to use the separate fields to create the 11-digit unique number in the fifth field, because each of the four fields is something we sort on (using a separate program). Long story....

Edited by Guest

Why not just do a multiple field sort based on all of the fields?

Edited by Guest

Create an account or sign in to comment

Important Information

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

Account

Navigation

Search

Search

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.