You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@superset.apache.org by GitBox <gi...@apache.org> on 2020/01/16 22:07:15 UTC

[GitHub] [incubator-superset] villebro commented on issue #920: Add a bottom row that aggregates each metric column for table viz

villebro commented on issue #920: Add a bottom row that aggregates each metric column for table viz
URL: https://github.com/apache/incubator-superset/pull/920#issuecomment-575369395
 
 
   This is a good idea, but I don't think it can be solved on the client side as proposed in this PR, as metrics need to be aggregated on the datasource (think mean, weighted average or other custom aggregation which can`t simply be summed up). However, by leveraging the new chart API, this could be done fairly elegantly by issuing two `queries` in the `QueryContext`; one for the regular grouped row-by-row results, and a second one with the same metrics, but without grouping, which is displayed at the bottom. Could be an interesting POC.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org