---
title: Viste
project: Dashboard
version: 1.0
section: guides
language: it
translation: missing
license: Total.js Enterprise
url: https://totaljs.es/docs/it/dashboard/1-0/guides/views/
updated: 2026-11-20T06:40:32.732Z
---

# Viste

> Describe the data that reports can use with an SQL query and a list of fields.

A view tells Dashboard which data reports may use: an SQL query on your PostgreSQL database and one entry for each column that people can pick. You write views in the **Views** screen.

![The Views screen with one view named Sales](/files/Jaswxf4J860f.webp)

## Create a view

1. Select **Views** in the bar on the left.
2. Select **Create**. The **View specification** editor opens.
3. Enter the view as JSON, then select **SUBMIT**.

This view reads a table of sales:

```json
{
	"id": "sales",
	"name": "Sales",
	"sql": "SELECT region, product, amount, dtcreated FROM demo_sales",
	"fields": [
		{ "column": "region", "name": "Region", "type": "string", "group": true },
		{ "column": "product", "name": "Product", "type": "string", "group": true },
		{ "output": "@", "column": "amount", "name": "Amount", "type": "number", "format": 2 },
		{ "column": "dtcreated", "name": "Date", "type": "date", "group": true }
	]
}
```

The view card appears in **Views**, and the view is ready to use in [reports](../reports/).

## Edit or remove a view

Select the gear icon on the card of a view, then **Edit** or **Remove**. Removing a view also removes every report that uses it.

## More about views

Views work as in OpenReports:

- [Create a view](/openreports/1-0/guides/create-view/): how the SQL and the fields work, with tips.
- [Edit and remove views](/openreports/1-0/guides/edit-views/): how to change a field without breaking reports.
- [View definition](/openreports/1-0/reference/view-definition/): every key of the JSON.
