# PivotCell (@salmonui/pivot-table/engine)

> The PivotCell interface of @salmonui/pivot-table/engine.

Canonical: https://salmonui.dev/docs/reference/pivot-table/engine/PivotCell

```ts
import type { PivotCell } from '@salmonui/pivot-table/engine';
```

Also exported from `@salmonui/pivot-table`.

Entry index: https://salmonui.dev/docs/reference/pivot-table/engine (Markdown with every symbol of the entry: https://salmonui.dev/docs/reference/pivot-table/engine.md).

## Reference

Kind: interface

```ts
interface PivotCell {
    readonly rowIndex: number;
    readonly columnIndex: number;
    readonly rowKey: string;
    readonly columnKey: string;
    readonly measure: string | null;
    readonly value: number | null;
    readonly rawValue: number | null;
    readonly formattedValue: string;
    readonly kind: 'value' | 'subtotal' | 'grandTotal';
    readonly rowCount: number;
}
```

Members (10):

| Name | Signature | Flags | Description |
| --- | --- | --- | --- |
| `rowIndex` | `readonly rowIndex: number;` |  |  |
| `columnIndex` | `readonly columnIndex: number;` |  |  |
| `rowKey` | `readonly rowKey: string;` |  |  |
| `columnKey` | `readonly columnKey: string;` |  |  |
| `measure` | `readonly measure: string \| null;` |  |  |
| `value` | `readonly value: number \| null;` |  | Aggregated value (after calculated fields and show-values-as), or null for empty. |
| `rawValue` | `readonly rawValue: number \| null;` |  | Raw aggregate before show-values-as. |
| `formattedValue` | `readonly formattedValue: string;` |  |  |
| `kind` | `readonly kind: 'value' \| 'subtotal' \| 'grandTotal';` |  |  |
| `rowCount` | `readonly rowCount: number;` |  | Number of raw rows behind the cell (drill through). |
