> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.nvidia.com/sdgm/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.nvidia.com/sdgm/_mcp/server.

# forecast_length

#### `forecast_length: <integer>` (Optional)

## Description

Turns a node regression problem into a forecasting problem. The given target is forecasted for `forecast_length` steps into the future. This only applies to temporal queries (queries that include a temporal aggregation such as `SUM(TRANSACTIONS.AMOUNT, 0, 2, days))`.

### Supported Task Types

* Forecasting

### Example

In the following query, a value of `forecast_length=3` will forecast the sum for the next 3, 7-day windows.

```Text PQL
PREDICT SUM(TRANSACTIONS.AMOUNT, 0, 7, days)
FOR EACH CUSTOMERS.CUSTOMER_ID
```

Experimental Feature