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

Recommended Posts

Posted

Ok, here's one I'm stumped on! This is simplified a bit, but gets the point across as to what I'm trying to do.

I have a table of records. Each table can have a varying number of child records in a related table. Each parent will have at least one child, but can have an unlimited number after that.

Each child has a field with text entered either "yes" or "no". In the parent record, I want a calculated field to return "yes" if every child record says "yes" and otherwise return "no."

So:

Child 1 = "no"

Child 2 = "no"

Parent = "no"

Child 1 = "yes"

Child 2 = "yes"

Parent = "yes"

Child 1 = "yes"

Child 2 = "no"

Child 3 = "yes"

Parent = "no"

Any ideas?

Posted

Make a calculation field in Child of field = "yes". This calc will return a 1 for all 'yes'es. Make a calculation field in Parent of Count(Child::serial) = Sum(Child::yescalc).

Posted

Define a field using the Min function for the child table and place the field on the parent layout (so the result will be for each parent). With "no" = 0 and "yes" = 1, if you have any child with "no", the result will be 0, otherwise 1.

Posted

Perfect, thanks! I knew there had to be a way to do it.

Posted

Transpower's suggestion will probably be faster to calculate. Case( Min(Child::yescalc), "yes", "no" )

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