in pivot table generation the default function for data fields is sum.
is there any way set other functions to it.
like count, average,max and min for data fields.
thanks and regards
You may use PivotField.setFunction() method for your need and you have to do it in your code: