# AggregatedExpressionCumulativeValueContext

Canonical page: https://www.adaptabletools.com/docs/reference/aggregatedexpressioncumulativevaluecontext

Context used by `cumulative.currentValue`: the running aggregate after the
reducer has visited the rows up to (and including) the current one.
`aggregatedValue` is the accumulator, `rowNodes` the visited prefix.

```ts title="TypeScript"
export interface AggregatedExpressionCumulativeValueContext extends AggregatedExpressionProcessAggValueContext 
```

###### Extends

[`AggregatedExpressionProcessAggValueContext`](https://www.adaptabletools.com/docs/reference/aggregatedexpressionprocessaggvaluecontext.md)

## Properties

| Property | Type | Description |
| --- | --- | --- |
| [index](https://www.adaptabletools.com/docs/reference/aggregatedexpressioncumulativevaluecontext.md#index) | `number` | Position of the row within its ordered partition |
| [rowNode](https://www.adaptabletools.com/docs/reference/aggregatedexpressioncumulativevaluecontext.md#rownode) | `IRowNode` | Row node whose running value is being read |
| [weightValue](https://www.adaptabletools.com/docs/reference/aggregatedexpressioncumulativevaluecontext.md#weightvalue) | `any` | Resolved `WEIGHT([column])` value for the current row (see `weight`). |
| [adaptableContext](https://www.adaptabletools.com/docs/reference/aggregatedexpressioncumulativevaluecontext.md#adaptablecontext) | `any` | Custom application Context provided in `AdaptableOptions.adaptableContext` |

## Property Details

### index

Position of the row within its ordered partition

```ts title="TypeScript"
index: number;
```

###### Property Value

`number`

### rowNode

Row node whose running value is being read

```ts title="TypeScript"
rowNode: IRowNode;
```

###### Property Value

`IRowNode`

### weightValue

Resolved `WEIGHT([column])` value for the current row (see `weight`).

```ts title="TypeScript"
weightValue?: any;
```

###### Property Value

`any`

### adaptableContext

> *Inherited from [BaseContext](https://www.adaptabletools.com/docs/reference/basecontext.md)*

Custom application Context provided in `AdaptableOptions.adaptableContext`

```ts title="TypeScript"
adaptableContext: any;
```

###### Property Value

`any`
