This is documentation for the next version of Grafana. For the latest stable release, go to the latest version.
List of calculations
This topic lists and defines calculations used in Grafana.
Among other places, these calculations are used in the Transform tab and the bar gauge, gauge, and stat visualizations.
|All nulls||true when all values are null|
|All zeros||true when all values are 0|
|Change count||number of times the field’s value changes|
|Count||number of values in a field|
|Delta||cumulative change in value|
|Difference||difference between first and last value of a field|
|Difference percent||percentage change between first and last value of a field|
|Distinct count||number of unique values in a field|
|First (not null)||first, not null value in a field|
|Max||maximum value of a field|
|Mean||mean value of all values in a field|
|Min||minimum value of a field|
|Min (above zero)||minimum, positive value of a field|
|Range||difference between maximum and minimum values of a field|
|Step||minimal interval between values of a field|
|Total||sum of all values in a field|
Related Grafana resources
GrafanaCONline 2021 is coming June 7-17
Be the first to learn about exciting next-generation features in Grafana 8.0, be inspired by what community members are building, and attend expert-led sessions and workshops on Grafana, Prometheus, Loki logs, and more.
Unify your data with Grafana plugins: Splunk, MongoDB, Datadog, and more
Show how Grafana can be used to take data from multiple different sources and unify it, without disrupting the investments that are working today.
Demo: Getting started with Grafana Enterprise and observability
Join the Grafana Labs team for a 30-minute demo of how to get started with the Grafana Stack, so you can go from zero to observability in just a few minutes.