mirror of
https://github.com/grafana/grafana.git
synced 2025-09-26 08:04:01 +08:00

* combines topics into add and organize panels topic * updates front matter * fixes relrefs * fixes typo * Update docs/sources/dashboards/add-organize-panels.md Co-authored-by: Torkel Ödegaard <torkel@grafana.com> * Update docs/sources/dashboards/add-organize-panels.md Co-authored-by: Torkel Ödegaard <torkel@grafana.com> * make prettier Co-authored-by: Torkel Ödegaard <torkel@grafana.com>
23 lines
849 B
Markdown
23 lines
849 B
Markdown
---
|
|
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/" >}}).
|
|
|
|
1. Open the panel.
|
|
1. Below the query, click **Expression**.
|
|
1. 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/" >}}).
|
|
|
|
1. Write the expression.
|
|
1. Click **Apply**.
|