After contacting grafana directly I received the answer that this is not currently possible. All such computation must be done by the data source, not by grafana.

Answer from Chor Hatara Hud'u Keturi on Stack Overflow
🌐
Grafana
community.grafana.com › elasticsearch
Transformation then cumulative sum - Elasticsearch - Grafana Labs Community Forums
March 22, 2021 - I have a graph showing 2 Elasticsearch queries “Attempted” and “Failure” as numerical data. Then I use “Add field from calculation” transformation to have a new graph line “Success”. How can I show the cumulative sum lin…
🌐
GitHub
github.com › grafana › grafana › issues › 4130
Elasticsearch: Add Cumulative Sum Aggregation (Pipeline Agg) · Issue #4130 · grafana/grafana
February 23, 2016 - i have a series that shows, say, the count of visitors over every 10 minutes now i want to get the cumulative sum plotted i understand i need to use pipelines for elasticsearch, but only see Deriva...
Author: grafana
🌐
Grafana
community.grafana.com › elasticsearch
Cumulative Sum in Grafana 7.1.5 Elastic Search Datasource - Elasticsearch - Grafana Labs Community Forums
September 17, 2020 - I am trying to use cumulative sum metric for elastic search data source, i do not know what is the value in metric it is expecting, when I type a numeric field name it is reset
🌐
Grafana
community.grafana.com › t › cumulative-sum-in-grafana-7-elastic-search-datasource › 36401
Cumulative Sum in Grafana 7 Elastic Search Datasource - Grafana Labs Community Forums
September 10, 2020 - I am trying to use cumulative sum metric for elastic search data source, i do not know what is the value in metric it is expecting, when I type a numeric field name it is reset
🌐
Grafana
grafana.com › docs › grafana-cloud › observe-and-act › connect-externally-hosted › data-sources › elasticsearch › query-editor
Elasticsearch query editor | Grafana Cloud documentation
Refer to Cumulative sum aggregation. serial difference - Calculates the difference between values in a time series. Refer to Serial differencing aggregation. bucket script - Executes a script on metric values from other aggregations. Refer to Bucket script aggregation. You can select multiple metrics and group by multiple terms or filters when using the Elasticsearch ...
🌐
Elastic
elastic.co › docs › reference › elasticsearch › aggregations › pipeline › cumulative sum aggregation
Cumulative sum aggregation | Elasticsearch Reference
A parent pipeline aggregation which calculates the cumulative sum of a specified metric in a parent histogram (or date_histogram) aggregation. The specified...
🌐
Grafana
grafana.com › docs › grafana › latest › datasources › elasticsearch › query-editor
Elasticsearch query editor | Grafana documentation
Refer to Cumulative sum aggregation. serial difference - Calculates the difference between values in a time series. Refer to Serial differencing aggregation. bucket script - Executes a script on metric values from other aggregations. Refer to Bucket script aggregation. You can select multiple metrics and group by multiple terms or filters when using the Elasticsearch ...
Find elsewhere
🌐
Stack Overflow
stackoverflow.com › questions › 79728381 › how-do-i-show-a-cumulative-sum-of-each-series-in-a-grafana-multi-series
charts - How do I show a cumulative sum of each series in a Grafana multi series? - Stack Overflow
Currently I am achieving this using the Prepare Time Series (Multi-Frame Time Series) transformation to create a frame for each category. Then I have to add a Add Field From Calculation (Cumulative Function, Total) transformation to get a new cumulative field to use, and filter out the original fields.
🌐
Grafana
community.grafana.com › t › cumulative-variable › 116983
Cumulative variable - Grafana - Grafana Labs Community Forums
March 14, 2024 - Hi, I’m new to Zammad and Grafana, and my boss has requested me to create some charts. I followed the official documentation on how to implement Zammad with Elasticsearch in Grafana to set it up. I’m currently working on a time chart and I need to set an acumulative variable that represents ...
🌐
GitHub
github.com › grafana › grafana › actions › runs › 6625402479 › usage
cumulative sum · grafana/grafana@d3faf1b
The open and composable observability and data visualization platform. Visualize metrics, logs, and traces from multiple sources like Prometheus, Loki, Elasticsearch, InfluxDB, Postgres and many more. - cumulative sum · grafana/grafana@d3faf1b
Author: grafana
🌐
Grafana
community.grafana.com › elasticsearch
Calculate a sum across all buckets - Elasticsearch - Grafana Labs Community Forums
October 23, 2018 - I also tried to apply some Sibling Pipeline Aggregations similar to Sum Bucket Aggregation on Grafana Dashboard with Elasticsearch as Datasource · I am not able find any set of instructions or ways to do a Sibling Pipeline Aggregation in Grafana similar to what we can do in Kibana Visualization ...
🌐
Grafana
community.grafana.com › t › sum-aggregation-with-elasticsearch-data-source-shows-only-one-value › 13740
Sum Aggregation with elasticsearch data source shows only one value - Grafana - Grafana Labs Community Forums
January 22, 2019 - Hi, I’m trying to create a single stat panel that displays a sum of the values of a field for the selected time range. The data source is elastic, 6.0+ version. The problem I’m having is that it only shows one value of the field and not the sum. Depending on the order by the value changes, ...
🌐
Grafana
community.grafana.com › t › how-to-cumulative-sum-for-kwh-that-resets-daily › 5518
How to - Cumulative sum for kWh that resets daily - Grafana Labs Community Forums
February 16, 2018 - Hi, In an Influx database I have watts being logged and have a CQ that creates kWh data. I would like to graph cumulative kWh consumption during the day to show energy usage that grows throughout the day and the reset …
🌐
GitHub
github.com › grafana › grafana › issues › 21838
Sum query on another query with Elasticsearch · Issue #21838 · grafana/grafana
January 30, 2020 - If what I am asking previously is not possible, I would like that my query A shows me the total of all the itemNumberDone after the group by. The items need to be grouped by and I want the items with the max timestamp like I did in the query. Currently, it doesn't show me a total in the pie chart but many sums.
Author: grafana
🌐
Grafana
community.grafana.com › elasticsearch
Grafana Elasticsearch table aggregate by time and then terms for multiple metrics - Elasticsearch - Grafana Labs Community Forums
December 7, 2023 - What Grafana version and what operating system are you using? Grafana v10.2.2 What are you trying to achieve? In Table visualization, I want to aggregate by both time and terms, then show multiple metrics in the table. In SQL terms, it would be like this: SELECT date ,order_status ,COUNT(1) ,SUM(amount) FROM orders GROUP BY date ,order_status How are you trying to achieve it?
🌐
Grafana
community.grafana.com › t › show-sum-of-sums-after-group-by-grafana-elasticsearch › 25403
Show sum of sums after group by - Grafana Elasticsearch - Grafana - Grafana Labs Community Forums
January 31, 2020 - Hello, I would like that Grafana shows me a sum (or a total) of all the sums that are created after the group by. Is that possible? I wanted to do that with another query but it is not implemented yet. Maybe there is a …