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.

unique count

Featured Replies

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

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

Create one value list which based on your number field.

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

  • Author

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

Yes rivet! You are right.

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.

Helo Queue! How i can put id for all found records in global field? By script?

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 &

LaRetta, you can do away with the If by using

gIDs & ID &

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

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.