Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×
The Claris Museum: The Vault of FileMaker Antiquities at Claris Engage 2025! ×

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

Recommended Posts

Posted (edited)

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
Posted

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

Posted (edited)

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
Posted (edited)

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

Edited by Guest

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