SYMPTOM:
SQL for a metric based on a fact defined with an ApplySimple statement is missing in the report SQL at run time in Strategy 9.4.x.
STEPS TO REPRODUCE:
Follow the steps below to reproduce this issue in the Strategy Tutorial project:



CAUSE:
The ApplySimple statement in the fact expression is not using the proper placeholder.
ACTION:
Modify the ApplySimple statement in the fact expression to include the proper placeholder as shown below:

ApplySimple("to_char(sysdate,'YYYY') - to_char(#0, 'YYYY')", )
The correct SQL for the metric will be generated once the schema is updated, as shown below:
