# AggregatedExpressionReducerContext

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

Context used by the reducer property in Aggregated Expressions

```ts title="TypeScript"
export interface AggregatedExpressionReducerContext extends BaseContext 
```

###### Extends

[`BaseContext`](https://www.adaptabletools.com/docs/reference/basecontext.md)

## Properties

| Property | Type | Description |
| --- | --- | --- |
| [accumulator](https://www.adaptabletools.com/docs/reference/aggregatedexpressionreducercontext.md#accumulator) | `any` | Value returned by the previous call to the reducer function, or the initialValue if this is the first call. You return the new accumulator value from this function. |
| [aggColumnId](https://www.adaptabletools.com/docs/reference/aggregatedexpressionreducercontext.md#aggcolumnid) | `string` | Column Id of the column being aggregated |
| [args](https://www.adaptabletools.com/docs/reference/aggregatedexpressionreducercontext.md#args) | `any[]` | Arguments passed to the function |
| [currentValue](https://www.adaptabletools.com/docs/reference/aggregatedexpressionreducercontext.md#currentvalue) | `any` | Current value being processed in the Column Data |
| [getValueForColId](https://www.adaptabletools.com/docs/reference/aggregatedexpressionreducercontext.md#getvalueforcolid) | `(colId: string) => any` | Helper function to get the value of a column |
| [groupByColumnIds](https://www.adaptabletools.com/docs/reference/aggregatedexpressionreducercontext.md#groupbycolumnids) | `string[]` | Column Id(s) of the column(s) being grouped by |
| [index](https://www.adaptabletools.com/docs/reference/aggregatedexpressionreducercontext.md#index) | `number` | Index of the current value in the Column Data |
| [rowNode](https://www.adaptabletools.com/docs/reference/aggregatedexpressionreducercontext.md#rownode) | `IRowNode` | Current row node |
| [weightValue](https://www.adaptabletools.com/docs/reference/aggregatedexpressionreducercontext.md#weightvalue) | `any` | Resolved `WEIGHT([column])` value for the current row.<br/>Only present when the function declares `weight: true` and the call<br/>supplies a WEIGHT clause. |
| [adaptableContext](https://www.adaptabletools.com/docs/reference/aggregatedexpressionreducercontext.md#adaptablecontext) | `any` | Custom application Context provided in `AdaptableOptions.adaptableContext` |

## Property Details

### accumulator

Value returned by the previous call to the reducer function, or the initialValue if this is the first call. You return the new accumulator value from this function.

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

###### Property Value

`any`

### aggColumnId

Column Id of the column being aggregated

```ts title="TypeScript"
aggColumnId: string;
```

###### Property Value

`string`

### args

Arguments passed to the function

```ts title="TypeScript"
args: any[];
```

###### Property Value

`any[]`

### currentValue

Current value being processed in the Column Data

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

###### Property Value

`any`

### getValueForColId

Helper function to get the value of a column

```ts title="TypeScript"
getValueForColId: (colId: string) => any;
```

###### Property Value

`(colId: string) => any`

### groupByColumnIds

Column Id(s) of the column(s) being grouped by

```ts title="TypeScript"
groupByColumnIds?: string[];
```

###### Property Value

`string[]`

### index

Index of the current value in the Column Data

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

###### Property Value

`number`

### rowNode

Current row node

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

###### Property Value

`IRowNode`

### weightValue

Resolved `WEIGHT([column])` value for the current row.
Only present when the function declares `weight: true` and the call
supplies a WEIGHT clause.

```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`
