The Author Online Book Forums are Moving

The Author Online Book Forums will soon redirect to Manning's liveBook and liveVideo. All book forum content will migrate to liveBook's discussion forum and all video forum content will migrate to liveVideo. Log in to liveBook or liveVideo with your Manning credentials to join the discussion!

Thank you for your engagement in the AoF over the years! We look forward to offering you a more enhanced forum experience.

xMix (3) [Avatar] Offline
#1
Hi, everyone,

There seems to be a problem about userdefinedfunction (UDF) in mondrian 3.x and expect to be solved. That is,
I can't aggregate the measure from the calculatedMember obtained by udf (i.e., using java code) instead of the base-measure, existed column, according to my scenarios, i have to compute such index via udf using java code, as is known, however, it got failed and an error occurred when i tried to aggregate the calculated measure as follows:

saiku.web.export.excel.name=saiku-export
11:17:56,775 WARN [AggregateFunDef ] Unable to determine aggregator for non-base measures in 2nd parameter of Aggregate(), summing: [Measures].[myCalc]


And is there any solution to aggregate the calculatedMember from java code? Really it puzzled me a long time, thanks.



attached parts of .xml file
<schema name="tests">
<cube name="testc">


<CalculatedMember name="myCalc" dimension="Measures" visible=true >
<Formula>
myUdf("test")
</Formula>
</CalculatedMember>

<CalculatedMember name="myCalc_fi" dimension="Measures" visible="true" >
<Formula>
Aggregate(MTD([Date].CurrentMember),[Measures].[myCalc])
</Formula>
</CalculatedMember>

</cube>
</schema>