NotImplementedException: rollup in CompoundMetric


#1

On 7.6, I’ve the following metric:

var m4 = CompoundMetric.make({
  id: "TestRollup",
  name: "TestRollup",
  description: "Test for Rollup",
  expression: "rollup('SUM', SimpleMetric1*(1-SimpleMetric2))"
});

When I try to evaluate this metric, I see the following error:

Error: wrapped org.apache.commons.lang.NotImplementedException: rollup

What’s that mean?


#2

Does it happen with evalMetricsWithMetadata? Perhaps the cause is the same as in How can I use ExpressionEngineFunction expressions in javascript code? .