dbTalk Databases Forums  

Calculation with summary results ??

comp.databases.filemaker comp.databases.filemaker


Discuss Calculation with summary results ?? in the comp.databases.filemaker forum.



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

Default Calculation with summary results ?? - 01-02-2012 , 05:21 PM






When a summary result of several fields, in a table,with numbers, is
used in a subsequent calc the result is as expected. (Summary + x =
answer)
If the summary is of a field that are all empty the result is OK the
summary is Zero and the calc returns the other value.(Summary + x = x)

If the summary is of a field where there are actually NO RECORDS, in
the table, then the result does not calculate at all even though the
other term has a value. (Summary + x = nothing )Just a blank field is
displayed

Is there an explanation or is that the way it is? :-?

--
John G.

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

Default Re: Calculation with summary results ?? - 01-02-2012 , 09:20 PM






In article <voOdnaAlt8SGoZ_SnZ2dnUVZ_rOdnZ2d (AT) westnet (DOT) com.au>, John G
<greentest (AT) ozemail (DOT) com.au> wrote:

Quote:
When a summary result of several fields, in a table,with numbers, is
used in a subsequent calc the result is as expected. (Summary + x =
answer)
If the summary is of a field that are all empty the result is OK the
summary is Zero and the calc returns the other value.(Summary + x = x)

If the summary is of a field where there are actually NO RECORDS, in
the table, then the result does not calculate at all even though the
other term has a value. (Summary + x = nothing )Just a blank field is
displayed

Is there an explanation or is that the way it is? :-?
I haven't got a version of FileMaker Pro in front of me, but there's an
option in the Define Calculation window to tell FileMaker what to do if
the source field(s) are empty - try turning that option on (or maybe it's
off, I can't recall which way around the option is worded).

The other option is to create this option yourself by checking for an
empty Summary field.
e.g.
Calc Calculation Field Number Result
= If (IsEmpty(Summary); X; Summary + X)

Helpful Harry )

Reply With Quote
  #3  
Old   
John G
 
Posts: n/a

Default Re: Calculation with summary results ?? - 01-03-2012 , 03:04 AM



Helpful Harry submitted this idea :
Quote:
In article <voOdnaAlt8SGoZ_SnZ2dnUVZ_rOdnZ2d (AT) westnet (DOT) com.au>, John G
greentest (AT) ozemail (DOT) com.au> wrote:

When a summary result of several fields, in a table,with numbers, is
used in a subsequent calc the result is as expected. (Summary + x =
answer)
If the summary is of a field that are all empty the result is OK the
summary is Zero and the calc returns the other value.(Summary + x = x)

If the summary is of a field where there are actually NO RECORDS, in
the table, then the result does not calculate at all even though the
other term has a value. (Summary + x = nothing )Just a blank field is
displayed

Is there an explanation or is that the way it is? :-?

I haven't got a version of FileMaker Pro in front of me, but there's an
option in the Define Calculation window to tell FileMaker what to do if
the source field(s) are empty - try turning that option on (or maybe it's
off, I can't recall which way around the option is worded).

The other option is to create this option yourself by checking for an
empty Summary field.
e.g.
Calc Calculation Field Number Result
= If (IsEmpty(Summary); X; Summary + X)

Helpful Harry )
Thanks Harry,
I think I have tried every combination of the IF EMPTY check box but I
could have got it wrong.

I had thought of doing some check and you have saved me the trouble.
Your IF statement looks like the answer but I have not had time to
test it yet.

I should have said I am using FM P 11

--
John G.

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

Default Re: Calculation with summary results ?? - 01-03-2012 , 02:05 PM



In article <LOCdnQPWeM5WWZ_SnZ2dnUVZ_sWdnZ2d (AT) westnet (DOT) com.au>, John G
<greentest (AT) ozemail (DOT) com.au> wrote:
Quote:
Thanks Harry,
I think I have tried every combination of the IF EMPTY check box but I
could have got it wrong.

I had thought of doing some check and you have saved me the trouble.
Your IF statement looks like the answer but I have not had time to
test it yet.

I should have said I am using FM P 11
I have found that checkbox option to be rather buggy in every version of
FileMaker I've used (up to about verion 7 or 8), especially when defining
Auto-enter Calculations, which is why I usually ignore it and force my own
version within the calculation.

For example, if you have an auto-enter field that replies on a
user-entered field ... left to it's own options, FileMaker has a bad habit
of performing the auto-enter calculation even though the user-enter field
is still empty.
e.g.
If [IsEmpty(UserField); ""; {insert calculation}]
or
If [UserField=""; ""; {insert calculation}]

Testing the user-enter field yourself and forcing the the auto-enter field
to remain empty "encourages" FileMaker to calculate a proper result only
once the user-enter field actually has data in it.

Helpful Harry )

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.