# PivotResult

> PivotResult interface in the browser TypeScript API: Coordinates are zero-based relative to the PivotTable output, including its header rows.

- **Product:** TX Sheet Control
- **Section:** Documentation
- **Kind:** Interface
- **Path:** TX Sheet Control > API Reference > TypeScript API > Browser Editor > PivotResult
- **1008 words**
- **Web URL:** https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/pivotresult/
- **LLMs URL:** https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/pivotresult/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/pivotresult/llms-full.txt

---

Coordinates are zero-based relative to the PivotTable output, including its header rows.

Package: `@txtextcontrol/tx-sheet-control`. Obtain operational handles through `workbook.pivotTables`; settings and results are detached values.

### Members

| Member | Description |
|---|---|
| [cells](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/pivotresult/cells-property/llms-full.txt) | The `cells` setting of `PivotResult`. See the syntax for its supported type and the example for a complete report configuration. |
| [rowPaths](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/pivotresult/rowpaths-property/llms-full.txt) | The `rowPaths` setting of `PivotResult`. See the syntax for its supported type and the example for a complete report configuration. |
| [columnPaths](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/pivotresult/columnpaths-property/llms-full.txt) | The `columnPaths` setting of `PivotResult`. See the syntax for its supported type and the example for a complete report configuration. |
| [headerRows](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/pivotresult/headerrows-property/llms-full.txt) | The `headerRows` setting of `PivotResult`. See the syntax for its supported type and the example for a complete report configuration. |
| [labelColumns](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/pivotresult/labelcolumns-property/llms-full.txt) | The `labelColumns` setting of `PivotResult`. See the syntax for its supported type and the example for a complete report configuration. |
| [sourceRows](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/pivotresult/sourcerows-property/llms-full.txt) | The `sourceRows` setting of `PivotResult`. See the syntax for its supported type and the example for a complete report configuration. |
| [subtotalRows](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/pivotresult/subtotalrows-property/llms-full.txt) | The `subtotalRows` setting of `PivotResult`. See the syntax for its supported type and the example for a complete report configuration. |
| [grandTotalRows](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/pivotresult/grandtotalrows-property/llms-full.txt) | The `grandTotalRows` setting of `PivotResult`. See the syntax for its supported type and the example for a complete report configuration. |

### Example

In a browser use `const workbook = editor.workbook`. In Node.js use your server control workbook.

```typescript
import { Workbook as ExampleWorkbook } from '@txtextcontrol/tx-sheet-control';
const workbook = new ExampleWorkbook();

const source = workbook.sheets.at(0);
source.range('A1:D5').setValues([
    ['Region', 'Category', 'Revenue', 'Cost'],
    ['Europe', 'Software', 1250, 500],
    ['Europe', 'Services', 700, 350],
    ['Americas', 'Software', 1800, 900],
    ['Americas', 'Services', 950, 400]
]);
const report = workbook.sheets.add('Sales Summary');
const pivot = report.pivotTables.add({
    name: 'RegionalSales',
    source: { sheetId: source.id, range: 'A1:D5' },
    destination: { sheetId: report.id, cell: 'B3' },
    rows: [{ field: 'Region' }],
    columns: [{ field: 'Category' }],
    values: [{ field: 'Revenue', caption: 'Sales', numberFormatCode: '$#,##0.00' }],
    layout: 'tabular', style: { rowBanding: true }
});
```

See [Pivot Tables](https://docs.textcontrol.com/tx-sheet-control/spreadsheets/pivot-tables/llms-full.txt) for filtering, calculated values and output.

---

## In This Section

- [PivotResult.cells Property](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/pivotresult/cells-property/llms-full.txt): PivotResult.cells property in the browser TypeScript API, with its type (string | number | boolean | null)[][] and a TypeScript example.
- [PivotResult.columnPaths Property](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/pivotresult/columnpaths-property/llms-full.txt): PivotResult.columnPaths property in the browser TypeScript API, with its type (string | number | boolean | null)[][] and a TypeScript example.
- [PivotResult.grandTotalRows Property](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/pivotresult/grandtotalrows-property/llms-full.txt): PivotResult.grandTotalRows property in the TX Sheet Control TypeScript API for the browser, with its type number[] and a TypeScript example.
- [PivotResult.headerRows Property](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/pivotresult/headerrows-property/llms-full.txt): PivotResult.headerRows property in the TX Sheet Control TypeScript API for the browser, with its type number and a TypeScript example.
- [PivotResult.labelColumns Property](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/pivotresult/labelcolumns-property/llms-full.txt): PivotResult.labelColumns property in the TX Sheet Control TypeScript API for the browser, with its type number and a TypeScript example.
- [PivotResult.rowPaths Property](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/pivotresult/rowpaths-property/llms-full.txt): PivotResult.rowPaths property in the browser TypeScript API, with its type (string | number | boolean | null)[][] and a TypeScript example.
- [PivotResult.sourceRows Property](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/pivotresult/sourcerows-property/llms-full.txt): PivotResult.sourceRows property in the TX Sheet Control TypeScript API for the browser, with its type number and a TypeScript example.
- [PivotResult.subtotalRows Property](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/pivotresult/subtotalrows-property/llms-full.txt): PivotResult.subtotalRows property in the TX Sheet Control TypeScript API for the browser, with its type number[] and a TypeScript example.

---

## Nearby

- **Previous:** [PivotTableDefinition.outputRange Property](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/pivottabledefinition/outputrange-property/llms-full.txt)
- **Next:** [PivotResult.cells Property](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/pivotresult/cells-property/llms-full.txt)
