Summary Type
28 Jun 2017 / 2 minutes to read
IMPORTANT
This feature is applicable only for Relational datasource only at Client Mode.
Allow us to specify the required layout
that PivotGrid should use in its summary cells. “Sum” is the default summary type. Following summary types that are supported:
- Sum
- Average
- Count
- Min
- Max
<script>
var pivot_dataset = []; // Specify Data source
var dataSource = {
data: pivot_dataset,
///...
values: [
{
fieldName: "Amount",
fieldCaption: "Amount",
summaryType: ej.PivotAnalysis.SummaryType.Average
},
{
fieldName: "Quantity",
fieldCaption: "Quantity",
summaryType: ej.PivotAnalysis.SummaryType.Sum
}
]
};
angular.module("PivotGridApp",["ejangular"]).controller('PivotGridCtrl', function ($scope)
{
$scope.datasource = dataSource;
});
</script>

Was this page helpful?
Yes
No
Thank you for your feedback!
Thank you for your feedback and comments. We will rectify this as soon as possible!
An unknown error has occurred. Please try again.
Help us improve this page