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

Recommended Posts

Posted

Hi,

I need help trying to create an elegant solution to this problem.

I need to do a "CountIf" type summary, counting all related records to the current one (which are also shown in a portal).

 

I have an Assignments table (each record has a unique AsnID) and an Individual Submission table with many records (each tied to the Assignment record through the AsnID).  A one:many relationship.  The important field here is that each Individual Submission has a field "Rating" that only allows "A", "B" or "C" values.  I'm sure you can see where this is going.

 

Is there are way that I can have a calculation field in "Assignments" that will count how many "A"s there are in all the related records' "Rating" field?  (I'll need three of them, one to count As, one to count Bs, and one to count Cs, but I can work that out if someone can show me how to do one of them).

 

In the main layout in which I'll be using this information, there's also a portal showing all the related records, so if it uses the portal to do this calculation, that's fine, but I'm sure it's possible without it.

 

This seems like a pretty simple thing to do, but I can't work it out and I can't find the answer through Google either.

Posted

Add a calculation field A_key = "A" to the Assignments table.  Add Assignments::A_key = Submission::Rating to the relationship to a TO of Submissions named A_sub.  Then a calculation field Assignments::A_count = Count(A_sub::ID) will show the count.

 

Repeat for the other ratings.

Posted

Another idea ... using same original entity relationship, calculation in Assignments:

PatternCount ( List ( Submission::Rating ; "A" ) )

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