---
title: "list_value function in Strata | Oplema"
description: "Create a list from the values you pass in, such as three numbers from three columns. Write it as list_value(any, ...) in a Strata Formula or Filter."
url: "https://oplema.com/docs/strata/functions/list-value"
updated: "2026-11-04"
---

# list\_value

Create a list from its arguments.

Also available as list\_pack.

## Try an expression

In [Formula](https://oplema.com/docs/strata/prep/formula), enter the expression and set Output type to **VARCHAR**.

### Expression

```
list_value(4, 5, 6)
```

### Result

```
'[4, 5, 6]'
```

The expression returns `INTEGER[]`. Formula stores it as `VARCHAR` in this example. To use your own data, replace the example values with column names. Keep format strings and other options as written.

Try it live in Formula

Result
| id | result |
| --- | --- |
| 1 | \[4, 5, 6\] |

## Arguments and types

```
list_value(any, ...)
```

**any**

Any value

Supported signatures (2)

```
list_value() → "NULL"[]
list_value(any: T, ...: T) → T[]
```

The result type can depend on the input types. See DuckDB for the full argument rules.

## Things to know

### With a missing first argument

```
list_value(NULL::INTEGER, 5, 6)
```

'\[NULL, 5, 6\]'

## Related functions

[array\_value

Creates an ARRAY containing the argument values.

](https://oplema.com/docs/strata/functions/array-value)[array\_to\_string

Join the values in a list into one string using a separator.

](https://oplema.com/docs/strata/functions/array-to-string)[array\_to\_string\_comma\_default

Join the values in a list into comma-separated text.

](https://oplema.com/docs/strata/functions/array-to-string-comma-default)[list\_approx\_count\_distinct

Calculate an approximate count of distinct values from the values in a list.

](https://oplema.com/docs/strata/functions/list-approx-count-distinct)

[Browse lists & arrays](https://oplema.com/docs/strata/functions#lists-&-arrays) [DuckDB documentation](https://duckdb.org/docs/current/sql/functions/list.html#list_valuearg)

Function metadata from DuckDB, used under the [MIT license](https://github.com/duckdb/duckdb/blob/v1.5.4/LICENSE).
