# AnalyticsProfile Interface

> AnalyticsProfile interface in the TX Sheet Control TypeScript API for Node.js, with 4 properties and a TypeScript example.

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

---

Detached profiling results; no worksheet or cache objects escape through this value.

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.

### Members

#### Properties

| Property | Description |
|---|---|
| [diagnostics](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/analyticsprofile/diagnostics-property/llms-full.txt) | The diagnostics value of AnalyticsProfile. |
| [fields](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/analyticsprofile/fields-property/llms-full.txt) | The fields value of AnalyticsProfile. |
| [rowCount](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/analyticsprofile/rowcount-property/llms-full.txt) | The rowCount value of AnalyticsProfile. |
| [source](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/analyticsprofile/source-property/llms-full.txt) | The source value of AnalyticsProfile. |

### Examples

Create sample data and obtain this detached result from the owning document. Return the selected data to the report or application UI.

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

function createAnalyticsProfileReport(control: ServerSheetControl) {
    const book = control.workbook;
    const sheet = book.sheets.at(0);
    sheet.range('A1:B5').setValues([
        ['Region', 'Revenue'],
        ['North', 42000],
        ['South', 38500],
        ['East', 31200],
        ['West', 44900],
    ]);

    book.analytics.setSource({
        id: 'sales',
        name: 'Regional sales',
        sheetId: sheet.id,
        range: 'A1:B5',
        hasHeaderRow: true,
    });

    const result = book.analytics.profile('sales');
    return result;
}
```

### 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)

---

## In This Section

- [AnalyticsProfile.diagnostics Property](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/analyticsprofile/diagnostics-property/llms-full.txt): AnalyticsProfile.diagnostics property in the TX Sheet Control TypeScript API for Node.js, with its type string[] and a TypeScript example.
- [AnalyticsProfile.fields Property](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/analyticsprofile/fields-property/llms-full.txt): AnalyticsProfile.fields property in the TX Sheet Control TypeScript API for Node.js, with its type AnalyticsField[] and a TypeScript example.
- [AnalyticsProfile.rowCount Property](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/analyticsprofile/rowcount-property/llms-full.txt): AnalyticsProfile.rowCount property in the TX Sheet Control TypeScript API for Node.js, with its type number and a TypeScript example.
- [AnalyticsProfile.source Property](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/analyticsprofile/source-property/llms-full.txt): AnalyticsProfile.source property in the TX Sheet Control TypeScript API for Node.js, with its type AnalyticsSource and a TypeScript example.

---

## Nearby

- **Previous:** [AnalyticsMeasure.field Property](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/analyticsmeasure/field-property/llms-full.txt)
- **Next:** [AnalyticsProfile.diagnostics Property](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/analyticsprofile/diagnostics-property/llms-full.txt)
