question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Add GroupyBy field to the Big Number

See original GitHub issue

Is 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 image

The proposed Big Number update image

The Table chart has this, so I would think you can just add another control variable with the group by option…

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:6 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
issue-label-bot[bot]commented, Sep 26, 2019

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.

0reactions
Deninccommented, Sep 10, 2021

If I understood your use case correctly, creating an ad-hoc metric COUNT(DISTINCT city_pair) with an ss_utilization > 0 WHERE clause should work.

This case might work for MAX agg but for other agg like SUM, COUNT there’s no way to do it.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Add GroupyBy field to the Big Number · Issue #8306 - GitHub
I want to be able to extract a metric from a group of results. For example I have a large set of results...
Read more >
Group rows of data (Power Query) - Microsoft Support
In the Query Editor, you can group the values in various rows into a single value by grouping the rows according to the...
Read more >
Modify category groups in Numbers on Mac - Apple Support
Select the rows you want to group in your table. Move the pointer over the empty square to the left of the selection,...
Read more >
How to Group Numbers in Pivot Table in Excel
You can group numbers in Pivot Table to create frequency distribution tables. This helps in analyzing numerical values by grouping it into ranges....
Read more >
SQL GROUP BY - Everything You Need To Know - Sisense
Group by is one of the most frequently used SQL clauses. It allows you to collapse a field into its distinct values.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found