Add GroupyBy field to the Big Number
See original GitHub issueIs your feature request related to a problem? Please describe. I want to be able to extract a metric from a group of results. For example I have a large set of results for a number of flown routes. These routes share several distinct city_pairs and I want to find the distinct count of a group of city pairs. I’d like to be able to group by city pairs and then show that list in a big number.
Describe the solution you’d like Here’s an example of the kind of query I would like to support
SELECT COUNT(*) FROM (
SELECT city_pair
FROM myFlownRoutesTable
GROUP BY city_pair
HAVING ((MAX(ss_utilization) > 0)
)
Describe alternatives you’ve considered I used the table chart to implement a group by city_pair with a having max clause. But while this table shows the results I can’t find a way to just show the number of completed routes (ie a count of the table rows)
Additional context The current Big Number
The proposed Big Number update
The Table chart has this, so I would think you can just add another control variable with the group by option…
Issue Analytics
- State:
- Created 4 years ago
- Comments:6 (1 by maintainers)
Top GitHub Comments
Issue-Label Bot is automatically applying the label
#enhancement
to this issue, with a confidence of 0.97. Please mark this comment with 👍 or 👎 to give our bot feedback!Links: app homepage, dashboard and code for this bot.
This case might work for MAX agg but for other agg like SUM, COUNT there’s no way to do it.