dbTalk Databases Forums  

Sum totals

comp.databases.filemaker comp.databases.filemaker


Discuss Sum totals in the comp.databases.filemaker forum.



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

Default Sum totals - 06-14-2007 , 11:40 AM






Help!!!

I have a data dase in FMP 8.0 and am trying to sum records as I go
along.

Example:
MTD YTD
Jul 2 2
Aug 4 6
Sep 7 13

So YTD for Aug (6)=July YTD (2) +Aug MTD (4)

So I have set up a serial number and Serial-1 number. So I have a
relationship based on Serial number=Serial-1 number.

If I make the YTD field a number I can do replace field contents and
have it be MTD+ Relationship:: YTD and get the corrct number but the
same in a calculation field all I get is?

How do I fix it?

Thanks,


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

Default Re: Sum totals - 06-15-2007 , 10:48 PM






In article <1181839212.518560.23950 (AT) o11g2000prd (DOT) googlegroups.com>,
LADSE <costsheets (AT) ladse (DOT) org> wrote:

Quote:
Help!!!

I have a data dase in FMP 8.0 and am trying to sum records as I go
along.

Example:
MTD YTD
Jul 2 2
Aug 4 6
Sep 7 13

So YTD for Aug (6)=July YTD (2) +Aug MTD (4)

So I have set up a serial number and Serial-1 number. So I have a
relationship based on Serial number=Serial-1 number.

If I make the YTD field a number I can do replace field contents and
have it be MTD+ Relationship:: YTD and get the corrct number but the
same in a calculation field all I get is?

How do I fix it?

Thanks,
I can't see any problem off the top of my head and anything that works
in the Replace window should also work as a Calculation.

The "?" symbol often means that the field simply isn't wide enough to
display the result. Try making the field wider and see if you get real
data. It may also indicate a relationship problem causing a never
ending circle, but usually FileMaker will warn you of these when trying
to leave the Calcaultion window.

There could be a problem when there is no realted data (ie. for the
very first record), so you could use a Calculation that checks this and
only uses the MTD amount when there is no previous month.
eg.
MTD + If (IsEmpty(Relationship::YTD), 0, Relationship::YTD)




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.