Grafana: How to implement math formula in query
<p>I am trying to create a influxdb query which selects pressure values and apply a math function on them. I found out how how to apply simple calculations like /100 (see the following screenshot) which works.
<a href="https://i.stack.imgur.com/u8F0R.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/u8F0R.jpg" alt="enter image description here"></a></p>

<p>But I want to calculate the altitude from this pressure values. The formula for this is the following:</p>

<p><a href="https://i.stack.imgur.com/uhq8x.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/uhq8x.jpg" alt="enter image description here"></a></p>

<p>Where p is the pressure (the query value in my case) and p0 is a constant.
So now my question is how can I apply the formula for altitude to my pres value ? Or is it not possible because I can only do simple operations like the /100 with the math block ?</p>