I have a calculation field and set all fields to not display if 0 and "do not evaluate if all referenced fields are empty" - but once all the fields are cleared, the calculation field still displays a question mark despite not calculating anything. How do I stop the calculation field from displaying the question mark? The calculation field is a percentage and formatted to display as such.
I am using FM v7
I checked to make sure the field is large enough to view the calculated figure and the formatting is correct (currency, percentage etc.).
There is no Auto Enter for any field - so the Calculated Storage is turned off and there is no: If ( IsEmpty ( Price ); 0 ).
Any suggestions would be helpful. I am sure it is just a simple thing that I am missing but I am racking my brain
A question mark means the calculation returned a result that can not be displayed or computed. It is not the same as a calculation that returned an empty value. Divide by zero is one example. You can use the data viewer to test all aspects of your calculation where you see the question mark. It should help you see where the question mark is coming from.
I usually test to see if the result is a ? and return a 0 (or blank) if it is depending on what I want in a solution.
If (1/0 = "?" ; 0 ; 1/0)
If you don't want to repeat your calculation you could wrap it in a Let statement like this (just replace the 1/0 with whatever your actual calculation is)