# Dashboard.kpi Method

> Dashboard.kpi method in the Node.js JavaScript API: Calculates comparison, change, target and trend using the same source/filter context as the widget.

- **Product:** TX Sheet Control
- **Section:** Documentation
- **Kind:** Method
- **Path:** TX Sheet Control > API Reference > JavaScript API > Node.js Server > Dashboard > Dashboard.kpi Method
- **Web URL:** https://docs.textcontrol.com/tx-sheet-control/reference/javascript-api/nodejs/dashboard/kpi-method/
- **LLMs URL:** https://docs.textcontrol.com/tx-sheet-control/reference/javascript-api/nodejs/dashboard/kpi-method/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-sheet-control/reference/javascript-api/nodejs/dashboard/kpi-method/llms-full.txt

---

## On This Page

- [Syntax](https://docs.textcontrol.com/tx-sheet-control/reference/javascript-api/nodejs/dashboard/kpi-method/#syntax)
- [Examples](https://docs.textcontrol.com/tx-sheet-control/reference/javascript-api/nodejs/dashboard/kpi-method/#examples)
- [Remarks](https://docs.textcontrol.com/tx-sheet-control/reference/javascript-api/nodejs/dashboard/kpi-method/#remarks)
- [See Also](https://docs.textcontrol.com/tx-sheet-control/reference/javascript-api/nodejs/dashboard/kpi-method/#see-also)

---

## Nearby

- **Previous:** [Dashboard.toggleBranch Method](https://docs.textcontrol.com/tx-sheet-control/reference/javascript-api/nodejs/dashboard/togglebranch-method/llms.txt)
- **Next:** [Dashboard.toggleSection Method](https://docs.textcontrol.com/tx-sheet-control/reference/javascript-api/nodejs/dashboard/togglesection-method/llms.txt)
