# Absolute Values in Graphs

**URL:** <https://community.grafana.com/t/absolute-values-in-graphs/40906>\
**Category:** Grafana\
**Created:** [December 22, 2020, 7:36am UTC](https://community.grafana.com/t/absolute-values-in-graphs/40906 "2020-12-22T07:36:24Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![uwjhn](https://avatars.discourse-cdn.com/v4/letter/u/848f3c/32.png) [@uwjhn](https://community.grafana.com/u/uwjhn)\
**Post date:** [December 22, 2020, 7:36am UTC](https://community.grafana.com/t/absolute-values-in-graphs/40906/1 "2020-12-22T07:36:25Z")

</div>

How do I have to set up Grafana to get absolute values of my mixed positive and negative data set from InfluxDB?

 ![Screenshot from 2020-12-22 08-38-42](https://us1.discourse-cdn.com/grafana/original/2X/e/ed92c17aac8e0ef7348c8923d4494c9d1a310cf6.png)

---

<div class="post-metadata">

**Author:** ![jangaraj](https://sea2.discourse-cdn.com/grafana/user_avatar/community.grafana.com/jangaraj/32/39197_2.png) [@jangaraj](https://community.grafana.com/u/jangaraj)\
**Post date:** [December 22, 2020, 9:51am UTC](https://community.grafana.com/t/absolute-values-in-graphs/40906/2 "2020-12-22T09:51:46Z")

</div>

Grafana visualizes what is returned by the query. So correct question will be how to return absolute values from my query? Use ABS function in your query [https://docs.influxdata.com/influxdb/v1.8/query\_language/functions/#abs](https://docs.influxdata.com/influxdb/v1.8/query_language/functions/#abs)

---

<div class="post-metadata">

**Author:** ![uwjhn](https://avatars.discourse-cdn.com/v4/letter/u/848f3c/32.png) [@uwjhn](https://community.grafana.com/u/uwjhn)\
**Post date:** [December 22, 2020, 11:09am UTC](https://community.grafana.com/t/absolute-values-in-graphs/40906/3 "2020-12-22T11:09:10Z")

</div>

Exactly. But is the query not done in grafana? My example shows  
“SELECT last(“value”) FROM …”  
What I need is “SELECT ABS(“value”) FROM…”  
I can’t find the selector “ABS” or something similar.

---

<div class="post-metadata">

**Author:** ![jangaraj](https://sea2.discourse-cdn.com/grafana/user_avatar/community.grafana.com/jangaraj/32/39197_2.png) [@jangaraj](https://community.grafana.com/u/jangaraj)\
**Post date:** [December 22, 2020, 11:20am UTC](https://community.grafana.com/t/absolute-values-in-graphs/40906/4 "2020-12-22T11:20:47Z")

</div>

Don’t use UI query editor mode. Toogle it to the text edit mode and write whole query manually. You will be able to write whatever you want.
