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

Recommended Posts

Posted

Hi wonder if someone can help.

I have a field which is y or no for attendance.  How can I count all the Y and also seperately the N to give a total of each.

Thanks very much for any help.

Posted

I would use 1 for attendance and nothing for not attending. And the Sum function works very well if you do a search for the 1 in the field or nothing aka = sign.

  • Like 2
Posted

Ok so i can put a search in that field for either 0 or 1 and sum them?

Will give it a shot if thats the case.

Thanks again.

Posted

Ah never thought,,the sum will only count the 1's :idot:

thanks

Posted

Do you even need both types of records? After all, anyone not attending is absent and vice versa - so unless you have something additional to record about both attendances and absences, one of the types is redundant.

Posted

Why not use a short toggle script and a button field so the user can click the attendance box and change it from a Yes to a No, No to Yes, 1 to 0, 0 to 1, etc. without ever touching the keyboard. This is very user friendly and works great. If text is what you want, include a simple calculation field in each record where [ If (text_field = "yes"; 1; 0)] and sum on that field.

 

Good Luck

Knucklehead

Posted

 If text is what you want, include a simple calculation field in each record where [ If (text_field = "yes"; 1; 0)] and sum on that field.

 

No, that's not a good idea, for several reasons. For one, if you ever want to change the displayed text, you need to change the value list AND the calculation formula AND modify existing records. The correct order is: if text is what you want to display, include a simple calculation field where:

 

If ( Statusfield ; "Some text" )

 

or just place the text directly on the layout and format it conditionally to appear when Statusfield is true. Or - if it's a short text, like "Yes" and "No" - format the field to display as Boolean.

  • Like 1

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