-
Notifications
You must be signed in to change notification settings - Fork 13.3k
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
Comments
Found a solution around it, thanks for the wonderful platform guys. |
Meet the same question,could u plz tell me how u fix this problem? Many thanks. |
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. |
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. ^ ^ |
…ts (apache#700) * fix(query): correct equals operator and duplicate filters * add time range endpoints
…ts (apache#700) * fix(query): correct equals operator and duplicate filters * add time range endpoints
…ts (apache#700) * fix(query): correct equals operator and duplicate filters * add time range endpoints
…ts (apache#700) * fix(query): correct equals operator and duplicate filters * add time range endpoints
Currently, the label is set by
COUNT(*)
if aGROUP BY
clause is presented, or by the aggregation of the numeric columns if there are noGROUP 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.
The text was updated successfully, but these errors were encountered: