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

Recommended Posts

Posted

In order to fill out my IRS quarterly payroll form, the IRS wants to know how many employees were paid during the quarter. My current quarterly report has 11 records. It shows that I have written 11 checks for two employees (one employee received 10 checks, the other employee received 1 check). Every summary field I have tried so far gives me 11 rather than 2. Any help? Thank you.

Posted (edited)

This is a tricky one - it requires three fields:

1. sCountSerialID, Summary = Count of SerialID (or any field that's never empty);

2. cInverseCount, Calculation = 1 / GetSummary ( sCountSerialID ; EmployeeID )

3. sCountEmployees, Summary = Total of cInverseCount

The last field will show the count of distinct employees.

Edited by Guest
Changed hyphens to commas, so that they are not mistaken for minus
  • Like 2
Posted

Wow. O.K. I'll give it a try. Thanks for the solution. I should be able to get to it tomorrow after I return from work. Thank you again.

Posted

Thank you so much for your help. The solution worked perfectly and it was very easy to do. I also noticed your edit, and either way, your help was easy to understand. Thank you again.

  • 2 months later...
Posted

I'm trying to do the exact same thing. Can't get it to work.

I don't understand the inverse count thing. What's this bit trying to do?

Thanks!

-jim lee

Posted (edited)

Wait! I got it to work.

You have to sort on exactly the field you use for the break field. IE you can't sort on the person's name if you use the person's ID as the break field.

Then it worked!

Thanks

-jim lee

Edited by Guest
Posted

That's right: sub-summaries, including GetSummary(), only work when records are sorted by the designated breakField.

Another thing to keep in mind is that breakField must be a local field - so if PersonID is a foreign key, and you need to sort by the related people's names, you must define a local calculation field = People::Name and use it as your breakField.

  • 4 months later...
  • Newbies
Posted

Yeah, that is a tricky one. I think there should be a "Count of" summary field option for "Unique count".

I submitted a feature request at:

http://www.filemaker.com/company/feature_request.html

It seems like it wouldn't be too hard for them to add that one in. If FM can find duplicate values in a Find Request (!), it should be able to figure out unique values in a Count.

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