Philippe Hébert
02/28/2022, 7:37 PMJan Kos
02/28/2022, 7:47 PMPhilippe Hébert
02/28/2022, 9:58 PMSELECT
attr,
SUM(revenues) AS revenues
FROM dataset
WHERE {some_condition}
GROUP BY attr
ORDER BY revenues DESC
LIMIT 5
Or in GD terms:
Given a dataset with an attribute named "attr", a fact column named "revenues", and some 100,000 records,
If I want to display a horizontal bar chart where:
• Vertical axis = attr
• Horizontal axis = SUM(revenues)
• Only the 5 attrs with the highest SUM(revenues) are shown
How do I achieve such an insight?Jakub Sterba
03/01/2022, 10:08 AMPhilippe Hébert
03/16/2022, 4:49 PM