# DashboardKpiResult Interface

> DashboardKpiResult interface in the TX Sheet Control TypeScript API for Node.js, with its syntax and a TypeScript example.

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

---

Detached KPI values; percentageChange is a fraction (0.1 means 10%), null for a zero/missing baseline.

Package: `@txtextcontrol/tx-sheet-control-server`. This is a settings/result contract, not a runtime constructor.

### Members

| Property | Description |
|---|---|
| [value](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/dashboardkpiresult/value-property/llms-full.txt) | Configures value on DashboardKpiResult; apply the complete settings object through its owning dashboard. |
| [comparison](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/dashboardkpiresult/comparison-property/llms-full.txt) | Configures comparison on DashboardKpiResult; apply the complete settings object through its owning dashboard. |
| [change](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/dashboardkpiresult/change-property/llms-full.txt) | Configures change on DashboardKpiResult; apply the complete settings object through its owning dashboard. |
| [percentageChange](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/dashboardkpiresult/percentagechange-property/llms-full.txt) | Configures percentageChange on DashboardKpiResult; apply the complete settings object through its owning dashboard. |
| [target](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/dashboardkpiresult/target-property/llms-full.txt) | Configures target on DashboardKpiResult; apply the complete settings object through its owning dashboard. |
| [trend](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/dashboardkpiresult/trend-property/llms-full.txt) | Configures trend on DashboardKpiResult; apply the complete settings object through its owning dashboard. |
| [isFavorable](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/dashboardkpiresult/isfavorable-property/llms-full.txt) | Configures isFavorable on DashboardKpiResult; apply the complete settings object through its owning dashboard. |

### Examples

Configure a complete sales dashboard using this contract. Pass the workbook from your existing editor or server control.

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

async function configureSalesDashboard(book: Workbook) {
    const sheet = book.sheets.at(0);
    sheet.range('A1:G5').setValues([
        ['Region', 'Country', 'Customer', 'Revenue', 'Profit', 'Date', 'Units'],
        ['Europe', 'Germany', 'Studio', 42000, 12000, '2026-01-15', 12],
        ['Europe', 'France', 'Labs', 38000, 9000, '2026-02-15', 15],
        ['Americas', 'Canada', 'Partners', 31000, 8000, '2026-01-15', 9],
        ['Americas', 'United States', 'Design', 49000, 15000, '2026-02-15', 18]
    ]);
    book.analytics.setSource({ id: 'sales', name: 'Sales', sheetId: sheet.id, range: 'A1:G5', hasHeaderRow: true });
    const dashboard = book.dashboards.add('Sales Performance');
    dashboard.update({ sections: [{ id: 'summary', title: 'Executive Summary' }] });
    dashboard.addWidget({
        id: 'revenue', type: 'column', title: 'Regional Revenue',
        placement: { x: 0, y: 0, width: 8, height: 6 },
        query: { sourceId: 'sales', dimensions: ['Region'], measures: [
            { field: 'Revenue', aggregation: 'SUM', alias: 'Revenue' },
            { field: 'Profit', aggregation: 'SUM', alias: 'Profit' }
        ] }
    });
    dashboard.updateWidget('revenue', { type: 'kpi', kpi: { measure: 'Revenue', comparisonMeasure: 'Profit', target: 180000 } });
    const result = await dashboard.kpi('revenue');
    const { writeFile } = await import('node:fs/promises');
    await writeFile('performance.json', JSON.stringify(result, null, 2));
    const { writeFile: saveDashboard } = await import('node:fs/promises');
    await saveDashboard('sales-dashboard.svg', await dashboard.renderSvg());
}
```

---

## In This Section

- [DashboardKpiResult.change Property](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/dashboardkpiresult/change-property/llms-full.txt): DashboardKpiResult.change property in the TX Sheet Control TypeScript API for Node.js, with its type number | null and a TypeScript example.
- [DashboardKpiResult.comparison Property](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/dashboardkpiresult/comparison-property/llms-full.txt): DashboardKpiResult.comparison property in the TX Sheet Control TypeScript API for Node.js, with its type number | null and a TypeScript example.
- [DashboardKpiResult.isFavorable Property](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/dashboardkpiresult/isfavorable-property/llms-full.txt): DashboardKpiResult.isFavorable property in the TX Sheet Control TypeScript API for Node.js, with its type boolean | null and a TypeScript example.
- [DashboardKpiResult.percentageChange Property](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/dashboardkpiresult/percentagechange-property/llms-full.txt): DashboardKpiResult.percentageChange property in the TX Sheet Control TypeScript API for Node.js, with its type number | null and a TypeScript example.
- [DashboardKpiResult.target Property](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/dashboardkpiresult/target-property/llms-full.txt): DashboardKpiResult.target property in the TX Sheet Control TypeScript API for Node.js, with its type number | null and a TypeScript example.
- [DashboardKpiResult.trend Property](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/dashboardkpiresult/trend-property/llms-full.txt): DashboardKpiResult.trend property in the TX Sheet Control TypeScript API for Node.js, with its type number[] and a TypeScript example.
- [DashboardKpiResult.value Property](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/dashboardkpiresult/value-property/llms-full.txt): DashboardKpiResult.value property in the TX Sheet Control TypeScript API for Node.js, with its type number | null and a TypeScript example.

---

## Nearby

- **Previous:** [DashboardKpiSettings.thresholds Property](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/dashboardkpisettings/thresholds-property/llms-full.txt)
- **Next:** [DashboardKpiResult.value Property](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/dashboardkpiresult/value-property/llms-full.txt)
