---
title: tickscript.compute() function
description: tickscript.compute() is an alias for tickscript.select() that changes a column’s name and optionally applies an aggregate or selector function.
url: https://docs.influxdata.com/flux/v0/stdlib/contrib/bonitoo-io/tickscript/compute/
estimated_tokens: 715
product: Flux
version: v0
---

# tickscript.compute() function

-   Flux 0.111.0+
-   View InfluxDB support

`tickscript.compute()` is a user-contributed function maintained by the [package author](#package-author-and-maintainer).

`tickscript.compute()` is an alias for `tickscript.select()` that changes a column’s name and optionally applies an aggregate or selector function.

##### Function type signature

```js
(<-tables: B, as: string, ?column: A, ?fn: (<-: B, column: A) => stream[C]) => stream[D] where A: Equatable, C: Record, D: Record
```

For more information, see [Function type signatures](/flux/v0/function-type-signatures/).

## Parameters

### as

(Required) New column name.

### column

Column to operate on. Default is `_value`.

### fn

Aggregate or selector function to apply.

### tables

Input data. Default is piped-forward data (`<-`).

#### Related

-   [tickscript.select() function](/flux/v0/stdlib/contrib/bonitoo-io/tickscript/select/)

[transformations](/flux/v0/tags/transformations/)
