We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 838522a commit 85a6473Copy full SHA for 85a6473
source/js/DataController.js
@@ -455,8 +455,10 @@ DataController.prototype.resetRawData = function () {
455
* @returns {Function}
456
*/
457
var getTotalFunction = function (columnIndex) {
458
- if (!data["columnProps"][columnIndex]) return _.TOTAL_FUNCTIONS.totalSUM;
459
- switch (data["columnProps"][columnIndex].summary) {
+ var pivotDefault = _.controller.getPivotProperty(["rowTotalAgg"]);
+ if (!data["columnProps"][columnIndex] && !pivotDefault)
460
+ return _.TOTAL_FUNCTIONS.totalSUM;
461
+ switch (data["columnProps"][columnIndex].summary || pivotDefault) {
462
case "count": return _.TOTAL_FUNCTIONS.totalCOUNT;
463
case "avg": return _.TOTAL_FUNCTIONS.totalAVG;
464
case "min": return _.TOTAL_FUNCTIONS.totalMIN;
0 commit comments