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

Recommended Posts

Posted (edited)

Hello!

I need to find out how many times someone attended in a month and year. something like:

IF(Month(ADate="4");Count(Adate)

It counts Adate, but all of them.

How do I get only the month of april?

Thanks in advanced!

Edited by Guest
removed shouting from the title
Posted

Create a calc field to calculate the year and month:

Year( ADate ) & " " & Month( ADate )

You need the year as well so April 2009 attendances aren't counted along with April 2010 and 2011.

Then make a summary report using this field as the sub-summary.

To get only the month of April, perform a find in ADate field before running the report.

Posted

I prefer turning the dates into generic date (first day of month date calc), learned from Comment as:

Date - Day ( Date ) + 1

There are many reasons:

  • Because it is a date, it can be used in many other date calculations
  • The same field can be used for many things, such as range relationships.
  • When printing reports, that date field can be used in the leading part (and displayed only as September, 2009)
  • Searching on the field is just as easy as searching a regular date (because it IS a regular date), such as 2009 will find all for the year, 9/2009 will find September 2009 etc

Whenever I've added this date to a table, I've ended up using it (and was glad it was there) for many other things.

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