diff --git a/api-reference/30 Data Layer/PivotGridDataSource/1 Configuration/fields/calculateSummaryValue.md b/api-reference/30 Data Layer/PivotGridDataSource/1 Configuration/fields/calculateSummaryValue.md index 02edb84bc3..9d7e9fc92c 100644 --- a/api-reference/30 Data Layer/PivotGridDataSource/1 Configuration/fields/calculateSummaryValue.md +++ b/api-reference/30 Data Layer/PivotGridDataSource/1 Configuration/fields/calculateSummaryValue.md @@ -184,7 +184,7 @@ To add a new grand totals column, add an item to **fields** and check that the * calculateSummaryValue(cell){ const isGrandTotalCell = !cell.parent("column"); if(isGrandTotalCell){ - return e.value(); + return cell.value(); } return null; }, @@ -208,7 +208,7 @@ To add a new grand totals column, add an item to **fields** and check that the * calculateSummaryValue(cell){ const isGrandTotalCell = !cell.parent("column"); if(isGrandTotalCell){ - return e.value(); + return cell.value(); } return null; }, @@ -231,7 +231,7 @@ To add a new grand totals column, add an item to **fields** and check that the * calculateSummaryValue(cell){ const isGrandTotalCell = !cell.parent("column"); if(isGrandTotalCell){ - return e.value(); + return cell.value(); } return null; }, @@ -254,7 +254,7 @@ To add a new grand totals column, add an item to **fields** and check that the * calculateSummaryValue(cell){ const isGrandTotalCell = !cell.parent("column"); if(isGrandTotalCell){ - return e.value(); + return cell.value(); } return null; }, @@ -263,6 +263,12 @@ To add a new grand totals column, add an item to **fields** and check that the * --- +You can configure **calculateSummaryValue** to apply custom aggregation logic to total and grand total rows and columns. For more information, see the following example: + +#include btn-open-github with { + href: "https://github.com/DevExpress-Examples/devextreme-pivotgrid-grand-total-and-total-detection" +} + #include uiwidgets-ref-functioncontext with { value: "field's configuration" }