dbTalk Databases Forums  

List amount of data sets by month

comp.databases.filemaker comp.databases.filemaker


Discuss List amount of data sets by month in the comp.databases.filemaker forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Martin Skultety
 
Posts: n/a

Default List amount of data sets by month - 08-06-2003 , 06:47 AM






Hi,

I've got 150.000 datasets in a Filemaker file. A "date" field within
each data set shows the date (between 01.01.1996 and current day) on
which the set has been added.

How can I generate a list that shows every month with the whole amount
of datasets created in it? Something like...

01.1996 255
02.1996 461
03.1996 323
....

Thanks for your help!

Martin

Reply With Quote
  #2  
Old   
Matt Revenaugh
 
Posts: n/a

Default Re: List amount of data sets by month - 08-06-2003 , 08:29 AM






On 8/6/03 4:47 AM, in article
7168c377.0308060347.1a551e0d (AT) po...OT) google.com, "Martin Skultety"
<martinskultety (AT) hotmail (DOT) com> wrote:

Quote:
Hi,

I've got 150.000 datasets in a Filemaker file. A "date" field within
each data set shows the date (between 01.01.1996 and current day) on
which the set has been added.

How can I generate a list that shows every month with the whole amount
of datasets created in it? Something like...

01.1996 255
02.1996 461
03.1996 323
...

Thanks for your help!

Martin

First you need to know which month each dataset is in.
Create a calculation field that gets the month and year of each dataset.
dataMonth = (Year(date) * 12) + Month(date)
This gives each month of the calendar a unique number.

Then you need to count the records in a dataset.
Create a summary field that counts records for the field dataMonth.
monthCount = Count(dataMonth)

Now you can generate a report.
Create a layout with header, footer and sub-summary parts. No body.
Make the sub-summary sort field point to dataMonth.
Place the date and monthCount fields in the sub-summary part.

To generate the report you need to sort first.
Sort by dataMonth, so that the report summarizes when dataMonth changes.

You may want to format the date field to reflect your month.year format.

That's it.


Matt Revenaugh



Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.