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.

Count ID once in for Summary

Featured Replies

I've have a table of records its the 'Many' of a One to many relationship. It includes Age and a Value. The ID comes from a Contacts Table. I've got a Summary field working perfectly except now I would like to have it only count the records with a unique ID.

The values are sorted by age. I need to know how many people had a record at an age not how many records I have at that age.

Example

ID Age Value

223 9 10

223 9 15

276 9 12

So my summary would be 2 not 3 (3 is the current value i'm getting).

From your data, there are only three 9s in the age column, so wouldn't the unique count be 1?

I'd be using the custom function UniqueValues() combined with the List() function and ValueCount()...

ValueCount( UniqueValues( List( relationship::age ) ) )

The UniqueValues function is posted on Brian Dunnings web site.

I need to know how many people had a record at an age

The context is not clear. Are you talking about one specific age (e.g. entered into a global), or is this in the context of a report?

  • Author

its in the context of the report.

Sorry i'm never good at typing this stuff out. But the request is to give a count of records for each age between ages 9 and 13 with a value between 8 and 25. but only count each contact once at each age.

The probably no more clean than the last explanation. Sorry.

You need three fields for this:

sCount = Summary, Count of SerialID (or any field that cannot be empty)

cInvCountByContact = 1 / GetSummary ( sCount ; ContactID )

sCountContacts = Summary, Total of cInvCountByContact

Sort your records by Age, then ContactID.

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.