Skip to content

Commit

Permalink
fix: only accumulate when total agg type is SUM
Browse files Browse the repository at this point in the history
For real this time :)
  • Loading branch information
edoardo committed Oct 18, 2024
1 parent 88e4ca6 commit a14ea35
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/modules/pivotTable/PivotTableEngine.js
Original file line number Diff line number Diff line change
Expand Up @@ -1095,7 +1095,7 @@ export class PivotTableEngine {
// accumulating other value types like text values does not make sense
if (
isCumulativeValueType(valueType) &&
totalAggregationType === AGGREGATE_TYPE_AVERAGE
totalAggregationType === AGGREGATE_TYPE_SUM
) {
// initialise to 0 for cumulative types
// (||= is not transformed correctly in Babel with the current setup)
Expand Down

0 comments on commit a14ea35

Please sign in to comment.