Incubator-superset: Add "metric" to show actual value of column, i.e. no aggregate

Created on 29 Mar 2019  路  10Comments  路  Source: apache/incubator-superset

We have a query that returns timeseries data with two columns:

  • date
  • count

I would like to simply graph the data as a line chart. However, when selecting the line chart, it requires that I choose a metric for the data, e.g. sum, average, etc

flameshot-2019-03-29T15:31:01

Since my data are already in the desired form, how can I just tell the chart to use the data as-is?

Note: I can also select the "sum" metric, since I am not performing any additional aggregation, but this seems a bit "kludgy".

.pinned

Most helpful comment

Bump

All 10 comments

You can use a workaround:
Just define an aggregate that would yield the original value if only one element per group is present, like, e.g. sum, min, max, avg.
Then, make sure you configure your chart to use the original time granularity.

However, this workaround is only valid, as long as the timestamps are all distinct. Otherwise the grouping would actually aggregate more than one value...

Good workaround.

I still would like to see this as a feature. I.e. aggregations should be optional, since they may be done during the query.

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.

Bump.

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.

Bump

Bump

I'd like to see this feature, too. having data in two columns and then plotting the first column against the second column is the base case, in my opinion. it's very confusing to not have this as an option for a first-time user (such as myself).

This shouldn't be too difficult to implement. I'll take a stab at adding this in the coming weeks.

@villebro I would love to see this feature happen, let's make it post 1.0 item! added to roadmap inbox :) https://github.com/apache-superset/superset-roadmap/projects/1

Was this page helpful?
0 / 5 - 0 ratings

Related issues

dinhhuydh picture dinhhuydh  路  3Comments

ghost picture ghost  路  3Comments

fly-high-bj picture fly-high-bj  路  3Comments

amien90 picture amien90  路  3Comments

lenguyenthedat picture lenguyenthedat  路  3Comments