xMix (3) [Avatar] Offline

I wrote a userdefinedFunction (UDF) in a schema file below Mondrian 4.0 but found it is very hard to understand how to use (below saiku3) as a measured dimension, could someone explain a little for this? moreover, the calculated data obtained from udf can't be aggregated when different levels of [time] dimension was designated. Indeedly i was confused for a long time. Thanks.

<schema name="myMondian">
<cube name="myCube">

<! -- however, the aggregator doesn't work when different time level is used, why? -->
<CalculatedMember name="myCalc" dimension="Measures" aggregator="sum" visible="true">


<UserDefinedFunction name="myUdf" className="mondrian.udf.myUdf"/>