Solved

FM - How to Solve Problem of Using Unstored Calcs in Another Calc

Posted on 2014-07-17
8
225 Views
Last Modified: 2014-07-23
The Balance Before Payment field (BalBeforePay_cc) is equal to the BalAfterPay field from the prior month.  Thus, I linked the table to itself by YearMonth to YearMonMin1 and then pulled the previous month in.  It worked.  However, for the same current month, when I try to subtract the Mort + MisAdjust fields from BalBeforePay_cc in order to get BalafterPay, the BalAfterPay field shows a ?, presumably because you cannot calc an unstored field.  How would you solve this problem.  Thanks.  See attachment.
Capture.JPG
Capture2.JPG
0
Comment
Question by:rvfowler2
  • 4
  • 4
8 Comments
 
LVL 25

Expert Comment

by:Will Loving
ID: 40202683
An unstored calculation field can certainly be used within another unstored calculation.  

1. Check to make sure that all the fields referenced are set to have a result as "Number" rather than text.

2. Make sure your display field is large enough to display the result

3. Comment out each part of the calculation and see if it displays the correct value for just that portion.

4. Make sure your relationship is valid from where you want to display the value

5. Make sure the calculation "Evaluate this calculation from the context of…" selection at the top of the calculation dialog is correct.
0
 
LVL 2

Author Comment

by:rvfowler2
ID: 40203199
Checked all 5 points and yet still when I change one of the fields from BalBeforePay to BalBeforePay_cc, I get the ? no matter how far I widen the field.  See screen print.
Capture3.JPG
0
 
LVL 25

Expert Comment

by:Will Loving
ID: 40203265
1. Can you display BalBeforePay and BalBeforePay_cc side by side on the same record?

2. I can't see the calculation for BalBeforePay_cc but I would question whether it is based on a Global Field or Parameter or something that makes it calculate correctly by itself but not In the context of the calculation.

3. If you comment out the BalBeforePay_cc field and just use (Amort + MiscAdjust) does the correct amount for that sum show up?

4. What happens if you comment out (Amort + MiscAdjust) leaving just BalBEforePay_cc?
0
Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 
LVL 2

Author Comment

by:rvfowler2
ID: 40209822
1.  Yes displayed them side by side on the same record.
2.  Calc not based on global field or parameter.  (see attached)
3&$.  Correct amount shows when commenting out BalBeforePay_cc; however if I comment out (Amort + MiscAdjust) leaving just BalBEforePay_cc, I get a ? in the field.
Capture4.JPG
0
 
LVL 25

Expert Comment

by:Will Loving
ID: 40209992
Well, I don't see anything obvious. I'm assuming that the calculation for BALafterPay in the last screen shot is actually incorrect and should reference BalBeforePay_cc rather than BalBeforePay.

It's pretty obvious that there is something about BalBeforePay_cc that is causing the issue because if you comment out (or just remove) the rest, you're just leaving a calculation referencing a calculation and that should always work if the "Calculate from" and the "Result Type" are correct….

So to confirm that, if you remove, not just comment out but remove ( Amort + MiscAdjust ) leaving only BalBeforePay_cc, it shows a question mark? Does it do this on all records? Might you be only looking at the first record that might have invalid data?
0
 
LVL 2

Author Comment

by:rvfowler2
ID: 40212725
So to confirm that, if you remove, not just comment out but remove ( Amort + MiscAdjust ) leaving only BalBeforePay_cc, it shows a question mark?  -- YES.  No, not invalid data because I'm looking at numerous rows of fields containing data that all become ? marks.

I currently am referencing BalBeforePay, which has static data until I get BalBeforePay_cc working.
0
 
LVL 25

Accepted Solution

by:
Will Loving earned 500 total points
ID: 40215244
My guess is that you have something recursive in the calculation. If BalBeforePay_cc references the previous month's BalBeforePay_cc and that references the next previous month's value then you have an infinite recursion that will not calculate properly.
0
 
LVL 2

Author Closing Comment

by:rvfowler2
ID: 40215305
Thanks.  Looking into making it non-recursive with a static auto enter.
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
FM GO Web Viewers 1 211
FM - Converting Fields to Records? 6 163
Filemaker Go to FMS - Low cellular signal 2 82
How to create table occurrences to display filtered data..?? 1 386
Conversion Steps for merging and consolidating separate Filemaker files The following is a step-by-step guide for the process of consolidating two or more FileMaker files (version 7 and later) into a single file with multiple tables. Sometimes th…
Problem: You have a hosted FileMaker database and users are tired of having to use Open Remote or Open Recent to access the database. They say, "can't you just give us something to double-click on rather than have to go through those dialogs?" An…
This video shows how to quickly and easily add an email signature for all users on Exchange 2016. The resulting signature is applied on a server level by Exchange Online. The email signature template has been downloaded from: www.mail-signatures…

808 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question