Files
grafana/docs/sources/panels/query-a-data-source/use-expressions-to-manipulate-data/write-an-expression.md
T
Jack Baldry 51dfcd7d37 Add current alias to all files (#48635)
* Add aliases to all files

Signed-off-by: Jack Baldry <jack.baldry@grafana.com>

* Prettify front matter

Signed-off-by: Jack Baldry <jack.baldry@grafana.com>
2022-05-17 08:24:11 -07:00

986 B

+++ aliases = ["/docs/grafana/latest/panels/query-a-data-source/use-expressions-to-manipulate-data/write-an-expression/", "/docs/sources/panels/query-a-data-source/use-expressions-to-manipulate-data/write-an-expression/"] title = "Write an expression" weight = 20 +++

Write an expression

If your data source supports them, then Grafana displays the Expression button and shows any existing expressions in the query editor list.

For more information about expressions, refer to [About expressions]({{< relref "./about-expressions.md" >}}).

Before you begin

  • [Add a panel]({{< relref "../../working-with-panels/add-panel.md" >}}).

To write an expression:

  1. Open the panel.

  2. Below the query, click Expression.

  3. In the Operation field, select the type of expression you want to write.

    For more information about expression operations, refer to [About expressions]({{< relref "./about-expressions.md" >}}).

  4. Write the expression.

  5. Click Apply.