Your post in FMDev does not provide any info not posted here.
If COD_ENS and COD_GRA are both empty for a given record, this calculation will be empty due to the selected option in the lower left corner of you dialog box. "Do not evaluate if all the referenced fields are empty". So that is one possible explanation as to why the field is empty. I can see where fields with these apparent names are present and have the needed values for 1 to appear, but we'd need to see this layout while in layout mode to be able to confirm that these are the correct fields and that they aren't accidentally set up to point to a related table occurrence or something.
I'd also try reproducing this in a new file created from scratch. If it works correctly, may your file or a field index is damaged. Try recovering the file to see if the recovered copy evaluates the values correctly.
Adjunto vista presentación.
Thanks David, Paul,
>FWIW, the If() is superfluous. All you need is the COD_ENS = 10 and COD_GRA = 5 in the calc box.
absolutely right, was an attempt to solve.
>Could be that you have a corrupt index somewhere!
the base has been recovered (5 hours approx.)