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

Recommended Posts

Posted

Hi,

I've run into what seems like a fairly straight-forwards problem but I can't figure it out.

I have my principal record "table1" with my related "table2". "table2" takes "table1"'s primary key.

I have a field in table 2 called status that can be set to "Open" or "Closed". I also have a status in table1 that can be "Open" , "Closed" or "Started". The way I want it to work is:

-If there are no related records in table 2: status = "Started"

-If there are "closed" and "open" related records in table2: status = "Open"

-If there are only "closed" related records in table 2: status = "closed"

I've been trying to figure out a calculation but I don't know where to start.

Posted

Try:


Case (

IsEmpty ( Child::ParentID ) ; "Started" ;

IsEmpty ( FilterValues ( "Open" ; List ( Child::Status ) ) ) ; "Closed" ; 

"Open"

)

(I have renamed your tables to Parent and Child.)

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