You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: api-reference/30 Data Layer/PivotGridDataSource/1 Configuration/fields/calculateSummaryValue.md
+10-4Lines changed: 10 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -184,7 +184,7 @@ To add a new grand totals column, add an item to **fields** and check that the *
184
184
calculateSummaryValue(cell){
185
185
const isGrandTotalCell = !cell.parent("column");
186
186
if(isGrandTotalCell){
187
-
return e.value();
187
+
return cell.value();
188
188
}
189
189
return null;
190
190
},
@@ -208,7 +208,7 @@ To add a new grand totals column, add an item to **fields** and check that the *
208
208
calculateSummaryValue(cell){
209
209
const isGrandTotalCell = !cell.parent("column");
210
210
if(isGrandTotalCell){
211
-
return e.value();
211
+
return cell.value();
212
212
}
213
213
return null;
214
214
},
@@ -231,7 +231,7 @@ To add a new grand totals column, add an item to **fields** and check that the *
231
231
calculateSummaryValue(cell){
232
232
const isGrandTotalCell = !cell.parent("column");
233
233
if(isGrandTotalCell){
234
-
return e.value();
234
+
return cell.value();
235
235
}
236
236
return null;
237
237
},
@@ -254,7 +254,7 @@ To add a new grand totals column, add an item to **fields** and check that the *
254
254
calculateSummaryValue(cell){
255
255
const isGrandTotalCell = !cell.parent("column");
256
256
if(isGrandTotalCell){
257
-
return e.value();
257
+
return cell.value();
258
258
}
259
259
return null;
260
260
},
@@ -263,6 +263,12 @@ To add a new grand totals column, add an item to **fields** and check that the *
263
263
264
264
---
265
265
266
+
You can configure **calculateSummaryValue** to apply custom aggregation logic to total and grand total rows and columns. For more information, see the following example:
0 commit comments