Kibana novice here...
I'm using ElasticseachSQL queries to populate elements in Canvas.
I'd like to find a way of creating a Line chart to display a DAILY cumulative count of row entries for a given month.
To get the entries i do the following:
SELECT COUNT(*) AS entries, DAY_OF_MONTH(entry_date) AS day FROM data_table WHERE MONTH_OF_YEAR(entry_date) = MONTH_OF_YEAR(NOW()) AND YEAR(entry_date) = YEAR(NOW()) GROUP BY day ORDER BY day
This gives me this lovely table:
day | entries
------+------------
1 |464
2 |180
3 |179
4 |378
Now i want another column where it keeps track of the cumulative count:
day | entries | cumulative count
------+-------------+--------------------------
1 |464 | 464
2 |180 | 644
3 |179 | 823
4 |378 | 1,201
how do i do this?
Most answers elsewhere mention windowing, but this doesn't seem supported in ESSQL.
Here's hoping...
