Solved

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

Posted on 2014-07-17
8
211 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
Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

 
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

What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Suggested Solutions

Pop up windows can be a useful feature of any Filemaker database.  Though best used sparingly, they can be employed in a multitude of different ways, for example;  as a splash screen at login, during scripted processes to control user input, as pick…
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…
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…
This video explains how to create simple products associated to Magento configurable product and offers fast way of their generation with Store Manager for Magento tool.

757 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

16 Experts available now in Live!

Get 1:1 Help Now