Closed junlincc closed 5 months ago
Also, if we want to keep the AVG function, i notice we treated N/A value as 0. not sure this is ideal. thoughts?
@junlincc
@pavlozt re: 1, thanks for the feedback that's what I thought as well :) cc @kgabryje @villebro
I don't think it needs to change.
Total
does not mean arithmetically sum, but worthy of column(dimension) aggregation.
For instance, Max measure
in Tableau ground total:cc: @junlincc
One bug report from our users:
Per-column custom formatting is not applied to totals.
For "show total" to be summing numeric fields regardless of whether the column is logically additive is totally ok. I believe that's what pivot tables do and what people expect.
NULL != 0
!
@junlincc we could always ask the user if the metric is additive:
COUNT
, SUM
) or not (COUNT DISTINCT
, AVG
, MIN
, MAX
).For metrics defined on-the-fly under "CUSTOM SQL" we can have a checkbox asking the user.
we can also have a checkbox in the metric configuration dialog asking if the metric is additive, and have it disabled for aggregation functions that we know are not additive, like AVG
and enabled for those we know are additive. This would work for the
moving comments here @Phuc0077 let's continue discussion. https://github.com/apache/superset/issues/14639
Hi, I has just learn Superset apache and I has one trouble In Pivot Chart option, I chose:
Aggregation Function: Sum Check Show Total But in row All and column All are Max, not Sum Please help me. Thanks a lots.
moving comments here @Phuc0077 let's continue discussion.
14639
Hi, I has just learn Superset apache and I has one trouble In Pivot Chart option, I chose:
Aggregation Function: Sum Check Show Total But in row All and column All are Max, not Sum Please help me. Thanks a lots.
hi, I have stuck with this issue too,
when I tick on Show total checkbox with the Sum function, my expectations are the Total Column (Column All) shows the aggregation of the previous columns.
btw, could you show me how to change the name of Column All
besides, when I try the other function, suggest avg, It couldn't show the average value.
tks
thank you everyone, for feedback!
@kidbabyvu please see video :)
btw, changing column name/adding label really should be an instant change. we should have the functionality in column formatting section. @mihir174
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.
Hello, I'm new into Superset. Trying to move our analytics to this platform, but i met problem as I see no possibility of making Total row correct for non-countable (or non-additive) metric, guess it's related to this topic
SuperSet version: 3.0.0 Example: I have three metrics grouped by month:
Expected result (using Google Spreadsheets):
Maybe I'm missing something, hope to get help
UPD. Found that usual table calculates "spend rate" correctly
Closing this in favor of #25747. This one is a feature request rather than a bug. If this is relevant in current versions (currently 3.x) please open a new Ideas discussion for a feature request or a PR to address the problem.
Is your feature request related to a problem? Please describe. A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
We recently added SUM/total control along with other enhancement to table chart, however, not all aggregations can be or should be summed, like average, max and min. In the second screenshot below, when the SHOW TOTALS check box is enabla the Totals row shows an average of the first column for AVG, max of the second column for COUNT, and the max of the third column for MAX. which are all very confusing.
Describe the solution you'd like This was a known issue when we implement the enhancement, but there's no clear solution how we should approach it. we could either
Community, please try this new feature out and let us know how you would like us to improve the table chart.
appreciation to engineers who contributed to this enhanced, robust table viz. @villebro @ktmud @kgabryje