Incubator-superset: How to make Table View/ Pivot Table order by time?

Created on 23 Sep 2017  路  8Comments  路  Source: apache/incubator-superset

Make sure these boxes are checked before submitting your issue - thank you!

  • [x] I have checked the superset logs for python stacktraces and included it here as text if any
  • [x] I have reproduced the issue with at least the latest released version of superset
  • [x] I have checked the issue tracker for the same issue and I haven't found one similar

Superset version

0.19.1

Expected results

Table View displays data table order by _timestamp instead of metrics[0] by default, or allow us to customize it.

Actual results

order by metrics[0] and no options to change it.

Steps to reproduce

Create a table view/ pivot table, and in GROUP BY section check Include Time. See an example as below (I have to click on __timestamp to make the chart order by time):

The default display:
image

What I expect:

image

.vis inactive

Most helpful comment

Up. Pivot table is not sorted even on the first metric. In particular - query has valid ORDER BY, but visualization doesn't obey.
Superset version is ebb7fbc5f024379361f301a86b770e0cc1a932cd.

All 8 comments

good idea.
i also want to order table by selected metrics column.

@gangh Seems V 0.20 has already provided the options you want.
But I can't still find a way to sort the table by __timestamp.

+1 for the feature but I just found a little work around in the meantime, add a metric in your table like max(orderdate) for example and use it to order your table. It'll do the job.

@Jemteddy Good idea. Why I haven't thought of that? But I do hope there will be a option instead of working around.

1 Like Pivot table, can Table View also choose the Number Format?
2 Table View/ Pivot Table can choose columns to order by?

+1 for this, ordering table / pivot table by any metric OR dimension would be an absolute killer feature.

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.

Up. Pivot table is not sorted even on the first metric. In particular - query has valid ORDER BY, but visualization doesn't obey.
Superset version is ebb7fbc5f024379361f301a86b770e0cc1a932cd.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

thoralf-gutierrez picture thoralf-gutierrez  路  3Comments

XiaodiKong picture XiaodiKong  路  3Comments

kalimuthu123 picture kalimuthu123  路  3Comments

joshuacano picture joshuacano  路  3Comments

deity-bram picture deity-bram  路  3Comments