21 lines
672 B
Markdown
21 lines
672 B
Markdown
---
|
|
title: Query first and last values
|
|
seotitle: Query first and last values in Flux
|
|
list_title: First and last
|
|
description: >
|
|
Use the [`first()`](/influxdb/cloud/reference/flux/stdlib/built-in/transformations/selectors/first/) or
|
|
[`last()`](/influxdb/cloud/reference/flux/stdlib/built-in/transformations/selectors/last/) functions
|
|
to return the first or last point in an input table.
|
|
weight: 210
|
|
menu:
|
|
influxdb_cloud:
|
|
parent: Query with Flux
|
|
name: First & last
|
|
influxdb/cloud/tags: [query]
|
|
related:
|
|
- /{{< latest "flux" >}}/stdlib/universe/first/
|
|
- /{{< latest "flux" >}}/stdlib/universe/last/
|
|
list_query_example: first_last
|
|
---
|
|
|
|
{{< duplicate-oss >}} |