SYMPTOM:
Custom subtotal with a metric in formula shows null in an OLAP report in Strategy 9.x-10.x.
The following steps demonstrate how to reproduce the issue in Strategy Tutorial project:
M1=Sum(M1_Fact)
M2=Min(M1_Fact)
M3_NonSmart=M1*M2
M3_NonSmart is a compound metric with "Allow Smart Metric" unchecked.

Subtotal1=(Sum((x * )) {@} * Min() {@} )



CAUSE:
One possible cause for this issue is that Analytical Engine cannot find data of M2 to finish the calculation of Subtotal1 since M2 is in the formula of Subtotal1.
WORKAROUND:
There are two possible workarounds as shown below:

This can force M3_Smart to use the component’s total function when calculate Total. With this method, Engine will first calculate total values for Sum(M1) and Min(M2), then Total of M3_Smart = Sum(M1) *Min(M2), which should get the same result as the original custom subtotal function as shown below:
