last() function
The last()
function selects the last non-null record from an input table.
last()
is a selector function.
last(column: "_value")
Empty tables
last()
drops empty tables.
Parameters
column
Column used to verify the existence of a value.
If this column is null in the last record, last()
returns the previous
record with a non-null value.
Default is "_value"
.
tables
Input data.
Default is piped-forward data (<-
).
Examples
The following example uses data provided by the sampledata
package
to show how last()
transforms data.
import "sampledata"
sampledata.int()
|> last()
Support and feedback
Thank you for being part of our community! We welcome and encourage your feedback and bug reports for Flux and this documentation. To find support, the following resources are available:
InfluxDB Cloud customers can contact InfluxData Support.