Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add function to set label based on sum of column values Mapbox visualization when GROUP BY is presented #700

Closed
izzyleung opened this issue Jun 30, 2016 · 4 comments

Comments

@izzyleung
Copy link

Currently, the label is set by COUNT(*) if a GROUP BY clause is presented, or by the aggregation of the numeric columns if there are no GROUP BY clause.

However, I want to set the label to be sum of a numeric column when there is a GROUP BY clause.
I cannot manually edit the SQL generated by Caravel, so there is no way to accomplish this function on the interface, I have to request you guys to add this function.

@izzyleung
Copy link
Author

Found a solution around it, thanks for the wonderful platform guys.

@CaraWuu
Copy link

CaraWuu commented Jul 18, 2016

Meet the same question,could u plz tell me how u fix this problem? Many thanks.

@izzyleung
Copy link
Author

@CaraWuu

I resolved the issue by creating a view in the database, and use the newly created view in Caravel to do the visualization.

You can do the group by in a SQL statement and use that statement to create a view, and thus Caravel will have no problem.

@CaraWuu
Copy link

CaraWuu commented Jul 20, 2016

OIC,I've tried this before. And now that I found a new way to solve this problem. You can add column or metric from editing table. You can write simple SQL statement as well, which is pretty cool. Anyway, thx a lot. ^ ^

zhaoyongjie pushed a commit to zhaoyongjie/incubator-superset that referenced this issue Nov 17, 2021
…ts (apache#700)

* fix(query): correct equals operator and duplicate filters

* add time range endpoints
zhaoyongjie pushed a commit to zhaoyongjie/incubator-superset that referenced this issue Nov 24, 2021
…ts (apache#700)

* fix(query): correct equals operator and duplicate filters

* add time range endpoints
zhaoyongjie pushed a commit to zhaoyongjie/incubator-superset that referenced this issue Nov 25, 2021
…ts (apache#700)

* fix(query): correct equals operator and duplicate filters

* add time range endpoints
zhaoyongjie pushed a commit to zhaoyongjie/incubator-superset that referenced this issue Nov 26, 2021
…ts (apache#700)

* fix(query): correct equals operator and duplicate filters

* add time range endpoints
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants