# PREVIOUSVALUE

PREVIOUSVALUE( `series`, `integer`)

Returns the value of a given series or expression from the previous row.

{% hint style="info" %}
ALIAS of `OFFSET`
{% endhint %}

### Arguments

| Argument  | Description                                                                              |
| --------- | ---------------------------------------------------------------------------------------- |
| `series`  | Series to return offset row from                                                         |
| `integer` | Optional. Default is -1. Number of rows to offset. `integer` can be positive or negative |

### Output

The value of a series or expression from the previous row or a row offset by a specified number

### Example

{% embed url="<https://datawrapper.dwcdn.net/RsGbp/1>" %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.cascade.io/cascade/functions-and-expressions/functions/table/previousvalue.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
