# AnalyticsAggregation Type

> AnalyticsAggregation type alias in the TX Sheet Control TypeScript API for Node.js: Supported deterministic aggregate functions.

- **Product:** TX Sheet Control
- **Section:** Documentation
- **Kind:** Interface
- **Path:** TX Sheet Control > API Reference > TypeScript API > Node.js Server > AnalyticsAggregation Type
- **381 words**
- **Web URL:** https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/analyticsaggregation/
- **LLMs URL:** https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/analyticsaggregation/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/analyticsaggregation/llms-full.txt

---

Supported deterministic aggregate functions. COUNT counts nonblank values (or rows when field is omitted).

Package: `@txtextcontrol/tx-sheet-control-server`. Version: **2.0.0**.

Related workbook object-model type, returned through the server control. Obtain it from its owning workbook or collection; it is not a required browser-package import.

### Syntax

```typescript
type AnalyticsAggregation = 'SUM' | 'COUNT' | 'COUNT DISTINCT' | 'AVG' | 'MIN' | 'MAX';
```

### Examples

Use this public value with the application package shown below. File and font inputs are application-owned resources, not automatically downloaded product data.

```typescript
import type { ServerSheetControl } from '@txtextcontrol/tx-sheet-control-server';

const value: Parameters<ServerSheetControl['workbook']['analytics']['query']>[0]['measures'][number]['aggregation'] =
    'SUM';

console.log(value);
```

### See Also

- [TypeScript Node.js Server API](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/llms-full.txt)
- [Creating Dashboards](https://docs.textcontrol.com/tx-sheet-control/dashboards/creating/llms-full.txt)

---

## Nearby

- **Previous:** [ActiveView.type Property](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/activeview/type-property/llms-full.txt)
- **Next:** [AnalyticsData Interface](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/analyticsdata/llms-full.txt)
