Hi SangeethaBabu
In case you need an output like {{deptID:1, count:2},{deptID:2,count:1}} you need to modify your aggregation logic. You could use the below code instead:
aggregation: a!queryAggregation( aggregationColumns: { a!queryAggregationColumn…