Home
Analytics
Aggregating values from an Aggregation Extension Point
kevindwatkins
<div>
<p><span style="font-family:calibri;">Version: Mars.1 Release (4.5.1) Build id: 20150924-1200</span></p>
<p> </p>
<p><span style="font-family:calibri;">I have built an aggregation extension point that is an extension of the IAggregationFactory interface to provide the difference between the current row value and previous row values. It seems to work just fine and I’ve been able to bring it into BIRT as a plugin. However I get some strange behavior when I use it in a table with groups. Specifically I can’t get aggregation to work in the column where I use or reference the output of the aggregation extension point. The following one group of the resultant table (see PDF):</span></p>
</div>
<p> </p>
<p>
Find more posts tagged with
Comments
kevindwatkins
<p>As a follow-up, I wrote another aggregation extension point of the summary type that counts the number of times the onRow method in the accumulator object is invoked. It shows that for the columns that use the values from a RUNNING_AGGR type aggregation, the SUMMARY_AGGR aggregation's onRow method is only invoked once (presumably ​on the first row) per group table.</p>
kevindwatkins
<p>Upon further experimentation, I have determined that the problem I'm describing is resulting from strange behavior when an Aggregation Extension Point is used to aggregate on a group (as opposed to the table). I have created a simple example that illustrates this behavior and will open a thread named "<span style="font-size:11pt;font-family:Calibri, sans-serif;">Grouping Anomaly with Aggregation Extension Points</span>" to discuss it.</p>