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

Recommended Posts

Posted

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).

Posted

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.

Posted

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?

Posted

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.

Posted

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.

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