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

Recommended Posts

Posted

hi,

I'm not sure how to best describe this, so if there is a thread with this question answered it isn't that I'm not too lazy to search. :)

the problem is this. I have three tables: people, invites, and events. each event and each person have a unique key that are related to each invite entry. invites can only have one person and one event - but each person and event can have many invites. the invite table is essentially glue between the other two.

I have a field in events that gets a sum of all the people who have reserved a spot in the invites table. in the invites table I also have a field (which I set up with some help from here) that has three values - accept, decline, or pending. I would like a count of each of these. however, when I use Count(status = 'decline'), filemaker tells me that function, and some others I tried, only accept straight field values. so...I'd like the same behavior as my Sum(Events::Attended), but I want a conditional state so I only count a given type of value.

I feel like I'm not clear, but any help is very appreciated.

Posted (edited)

I'm not sure of all of the things you are trying to do, but use Quotes " for anything other than Actual field Names, and numbers. Have you tried Pattern Count Function, i.e.PatternCount(Status ; "Decline" ?

HTH

Lee

Edited by Guest
Posted

In the invites table, create three more fields, all calculations.

cAccept = Status = "Accept"

cDecline = Status = "Decline"

cPending = Status = "Pendling"

Those fields will return a 1 if the Status matches. Sum() those fields.

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