Solved

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

Posted on 2014-07-17
8
219 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 24

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 24

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
 
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
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 
LVL 24

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 24

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

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…
Having just upgraded from Filemaker 11 to Filemaker 12 over the weekend, we thought we would add some tips for others making the same move.  In general, our installation went without incident. Please note that this is not a replacement for Chapter 5…
This tutorial gives a high-level tour of the interface of Marketo (a marketing automation tool to help businesses track and engage prospective customers and drive them to purchase). You will see the main areas including Marketing Activities, Design …
Internet Business Fax to Email Made Easy - With  eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, f…

910 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

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now