emerywang Posted October 1, 2004 Posted October 1, 2004 Hi. I have a calculation field, and when data is not available, it returns a question mark. How do I tell FMP to leave the field blank, when there is insufficient data to make that calc? I tried turning it into a number field, and lookup the calc. That allows me to manually delete the question mark out of the field, but that doesn't seem like the best solution to me. Any help is appreciate. Thanks! -Emery
-Queue- Posted October 1, 2004 Posted October 1, 2004 What does your calculation field look like? If you are using a Case statement with a "" result for a non-text field, then the null ("") must either be converted via TextToDate, TextToTime, etc. to the proper type or a default result should not be used, e.g. Case( thatfield = "this", Status(CurrentDate) ), so the calculation will not evaluate a result if the test is not true.
gdurniak Posted October 2, 2004 Posted October 2, 2004 The question mark usually means the calculation result is undefined, very often a divide by zero (or, that the number of digits returned doesn't fit in the field displayed) Test the values used in the calculation, with an IF statement, e.g. if (denominator, numerator/denominator, "")
-Queue- Posted October 2, 2004 Posted October 2, 2004 Or use a Case statement without the unnecessary null result.
emerywang Posted October 4, 2004 Author Posted October 4, 2004 Thanks, everyone. Below is the calculation. Where I have (no data) is where data does not exist. This is a rate calculation, and looks at client accounts over time. Data will be returned if the account is old enough to contain data, but not if the account isn't old enough. It is for the accounts that aren't old enough, that I get the question marks in the calc field. So what I need is some way to tell the calc field to just return nothing, rather than a question mark, if no data is available. Thanks. ((no data) /(no data)) ^ (1/10)-1
QuinTech Posted October 4, 2004 Posted October 4, 2004 Hi, Emery. Following on Gregory's & JT's suggestions, try this calc: Case ( Not IsEmpty ( FieldName ) and FieldName <> 0 , ( FieldName / FieldName ) ^ ( 1 / 10 ) - 1 ) HTH, Jerry
emerywang Posted October 7, 2004 Author Posted October 7, 2004 Thanks, Jerry and everyone. I actually used a modified version of this, with an "If" function, and it works. But you guys put me on the right track. Thanks again. -Emery
Recommended Posts
This topic is 7421 days old. Please don't post here. Open a new topic instead.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now