Solved

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

Posted on 2014-07-17
8
231 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

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…
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…
Come and listen to Percona CEO Peter Zaitsev discuss what’s new in Percona open source software, including Percona Server for MySQL (https://www.percona.com/software/mysql-database/percona-server) and MongoDB (https://www.percona.com/software/mongo-…
If you're a developer or IT admin, you’re probably tasked with managing multiple websites, servers, applications, and levels of security on a daily basis. While this can be extremely time consuming, it can also be frustrating when systems aren't wor…

717 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