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.

Number of values in a found set

Featured Replies

Is there an elegant way to count the number of different values for a field in a found set?

I can think of using a calculation field that has the field value if in the found set, empty if not. Then defining a value list for that calc field and counting the items with a values function. But that seems rather cumbersome.

TIA

I would make a subsummary report....

--sd

  • Author

I can only see how to use sub-summaries to tell me how many records of each value I have in a found set. What I need is how many distinct values of the field there are in the found set.

For example, if I had a database of restaurant tickets with menu items ordered,how could I determine how many different tickets had a particular item on them?

tkt 1 item 1

tkt 1 item 2

tkt 2 item 2

tkt 2 item 2

tkt 3 item 1

If I did a find on 'item 2', there would be three records found. The number of values for 'ticket' in the found set is '2'. '2' is the number I need to get.

I don't see how sub-summaries will help me with that.

Am I missing something?

See if this helps:

http://fmforums.com/forum/showtopic.php?tid/197861/

  • Author

I downloaded the 'test' database from the previous thread and mimiced it.

It gives me what I need.

Thanks!

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.