question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Totals in Pivot table are incorrect

See original GitHub issue

Expected results

the sum function must aggregate the sum of the column, the mean function must aggregate the mean of the column, etc

Actual results

sum, max, mean, std, var aggregation functions shows max values in pivot table

Screenshots

http://prntscr.com/118rk0k http://prntscr.com/118rkhu http://prntscr.com/118rkvx

How to reproduce the bug

  1. Go to ‘chart explore’
  2. choose vizualization type - Pivot table
  3. Scroll down to Pivot Options
  4. choose “show totals” and aggregation function sum, max, mean, std, var

Environment

  • superset version: superset version 1.01
  • python version: python --version 3.8.5
  • node.js version: node -v v10.19.0

Issue Analytics

  • State:open
  • Created 2 years ago
  • Reactions:7
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
rusackascommented, Dec 9, 2021

Please consider adopting Pivot Table V2, and let us know if you see any similar issue there.

0reactions
stale[bot]commented, Apr 17, 2022

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. For admin, please label this issue .pinned to prevent stale bot from closing the issue.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Calculated field returns incorrect grand total in Excel
This problem occurs when you use a calculated field (a field that is based on other fields) in a PivotTable, and the calculated...
Read more >
PLEASE HELP!! Pivot table showing incorrect sums - Mr. Excel
My guess is that your value field setting is not set to SUM the column. Once your pivot table active, select the value...
Read more >
Top 3 Excel Pivot Table Issues Resolved - MyExcelOnline
N.B. Sometimes you will need to locate the Pivot Table that has the Grouped values. The SALES field may not be evident that...
Read more >
Grand total for pivot table not giving me the correct amount ...
Put here part of your source data - header row and a few rows as a sample. Put here also a screenshot of...
Read more >
Pivot Table's 'Show Total' shows a incorrect number in a ...
It all comes down to how the data can be grouped as that is the key. As the quantities and Total $ are...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found