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 7163 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Posted

in a list of numbers (found set), is there a way to count how many are unique?

Posted

Hi rivet

presuming that the list of numbers is one number per record you could cretae a global to hold your count of uniques, self relate the file on the number field and then loop through the records using this relationship comparing each record with the next and the previous. If the number does not equal the next or previous then it is unique and you can add 1 to your unique counting global.

There may be a much cleverer and simpler way than that but with my limited experience that is the way I would approach it

HTH

Phil

Posted

Create one value list which based on your number field.

Then Unique_Count=Wordcount(ValuelistItems(...........))

Posted

that is good but it is for the complete table, I would like it to happen with a found set.

Posted

If you put the id for all found records in a global and relate it to your id field, then you can create a value list based on the found set.

Posted

Script to capture IDs of a found set into a global (text) called gIDs:

Set Field [ gIDs; "" ]

Go to Record/Request/Page [ First ]

Loop

Set Field [ gIDs; If(IsEmpty(gIDs); ID; gIDs &

Posted

Hi JT,

Your idea saves testing ... it just sets! And you know how I feel about wanting optimum! Sweet! smile.gif

It's sure good to have you back!!

LaRetta

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