dbTalk Databases Forums  

summary field depending on date

comp.databases.filemaker comp.databases.filemaker


Discuss summary field depending on date in the comp.databases.filemaker forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Jurgen Lemmens
 
Posts: n/a

Default summary field depending on date - 07-05-2005 , 12:58 AM






Hi,

I have the following problem and I dont know how to fix it withing filemaker
(pro 7.0v3):

The database contains 3 field:
* date
* number
* total of number until date

The records are not created in ascending order on date. I would like to have
the field "total of number until date" containing the total of the numbers
until the date of the current record. I tried with summary fields, but then
all the numbers are summarized. Is there any solution so when I enter a date
and a number, filemaker automatically calculates the total of the numbers
until that date?

Thanx in advance,


Jurgen Lemmens



Reply With Quote
  #2  
Old   
Helpful Harry
 
Posts: n/a

Default Re: summary field depending on date - 07-06-2005 , 01:23 AM






In article <42ca218e$0$24258$ba620e4c (AT) news (DOT) skynet.be>, "Jurgen Lemmens"
<jurgen.lemmens (AT) skynet (DOT) be> wrote:

Quote:
I have the following problem and I dont know how to fix it withing filemaker
(pro 7.0v3):

The database contains 3 field:
* date
* number
* total of number until date

The records are not created in ascending order on date. I would like to have
the field "total of number until date" containing the total of the numbers
until the date of the current record. I tried with summary fields, but then
all the numbers are summarized. Is there any solution so when I enter a date
and a number, filemaker automatically calculates the total of the numbers
until that date?
Nobody else seems to have answered this one, so I'll give it a stab.

I *THINK* in FileMaker 7 you should be able to create a
self-relationship that picks up all records "less than and equal to
'date'", and then use the Sum function with that relationship to total
the related field values ... but unfortunately I've never used
FileMaker 7, so I don't really know if that's correct or how these new
relationship ablities work. \

Basically if it works the way I think it does you can create a new
relationship:

PastRecords Date >= SameFile:ate

and then you can sum the records using:

TotalNumberUntilDate
= Sum (PastRecords::Number)

This can be either a calculation field (unstored so that it continually
updates) or an auto-enter claculation for a Number field (if you want
the CURRENT total to be stored with each record).



Helpful Harry
Hopefully helping harassed humans happily handle handiwork hardships ;o)


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.