dbTalk Databases Forums  

Summary Question

comp.databases.filemaker comp.databases.filemaker


Discuss Summary Question in the comp.databases.filemaker forum.



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

Default Summary Question - 10-17-2006 , 04:54 PM






You know how Quicken gives you the balance of your account as of that
day? So if you have a payment or deposit past today it's not figured in.
How do they do that and can I do it in FMP? I thought I had it figured
out but it doesn't work.

Thanks for any help.

Cris

Reply With Quote
  #2  
Old   
Bill Marriott
 
Posts: n/a

Default Re: Summary Question - 10-17-2006 , 11:20 PM






Hi Cris,

You can use relationships to calculate this value.

Given table "MyTable" with the fields:

EntryDate (Date)
Amount (Number)

1) Create:

CutOffDate (Date, Global)

Then go to the relationships graph.

2) Duplicate the "MyTable" table occurrence and call it "DateRange."
3) Set up a new relationship where MyTable::CutOffDate >=
DateRange::EntryDate

4) Finally, go into the Fields tab and create a new field:

TotInRange (calculation, number result, context: MyTable) =
Sum(DateRange::Amount)

Now when you look at your handiwork, you can enter a value into CutOffDate
and TotInRange will only show the sum of Amounts on or before that date.

"Cris" <cris (AT) noinfo (DOT) com> wrote

Quote:
You know how Quicken gives you the balance of your account as of that
day? So if you have a payment or deposit past today it's not figured in.
How do they do that and can I do it in FMP? I thought I had it figured
out but it doesn't work.

Thanks for any help.

Cris



Reply With Quote
  #3  
Old   
Cris
 
Posts: n/a

Default Re: Summary Question - 10-18-2006 , 01:37 PM



Brilliant! It was my relationship. A million thanks.

Ruby

In article <2ZGdnTkkbeATNqjYnZ2dnUVZ_oKdnZ2d (AT) comcast (DOT) com>,
"Bill Marriott" <wjm (AT) wjm (DOT) org> wrote:

Quote:
Hi Cris,

You can use relationships to calculate this value.

Given table "MyTable" with the fields:

EntryDate (Date)
Amount (Number)

1) Create:

CutOffDate (Date, Global)

Then go to the relationships graph.

2) Duplicate the "MyTable" table occurrence and call it "DateRange."
3) Set up a new relationship where MyTable::CutOffDate >=
DateRange::EntryDate

4) Finally, go into the Fields tab and create a new field:

TotInRange (calculation, number result, context: MyTable) =
Sum(DateRange::Amount)

Now when you look at your handiwork, you can enter a value into CutOffDate
and TotInRange will only show the sum of Amounts on or before that date.

"Cris" <cris (AT) noinfo (DOT) com> wrote in message
news:ficZg.373$_z4.118 (AT) newsfe07 (DOT) lga...
You know how Quicken gives you the balance of your account as of that
day? So if you have a payment or deposit past today it's not figured in.
How do they do that and can I do it in FMP? I thought I had it figured
out but it doesn't work.

Thanks for any help.

Cris

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 - 2013, Jelsoft Enterprises Ltd.