> ## Documentation Index
> Fetch the complete documentation index at: https://converge-enter-documentation.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Tutorial: build a data dashboard

Build Studio Sales, a dashboard that compares made-up studio orders by month, category, and status. Then replace the sample orders with a CSV file and restore them.

This 26-second video shows the flow: open the dashboard, filter it, import a CSV, then test an invalid file.

<video controls src="https://mintcdn.com/converge-enter-documentation/Dl1DSbRP-YuWE4KM/images/enter-help/1.11/enter-1.11-walkthrough.mp4?fit=max&auto=format&n=Dl1DSbRP-YuWE4KM&q=85&s=c62d94f2413a0bc22ce660b647639131" />

![Studio Sales dashboard with summary cards, a category chart, and an orders table](https://mintcdn.com/converge-enter-documentation/Dl1DSbRP-YuWE4KM/images/enter-help/1.11/dashboard-all.png?fit=max\&auto=format\&n=Dl1DSbRP-YuWE4KM\&q=85\&s=86054497d3a7f13f3cc4e401355b88f7)

The finished example: three cards, a category chart, and the orders table.

## How it works

A **dataset** is the set of order rows the dashboard reads. This version keeps it in your browser's **localStorage**, so a reload in the same browser keeps your data. It does not share data between people or devices. It lets you try calculations and CSV import without Cloud.

```mermaid theme={null}
flowchart LR
  A[Six sample rows] --> B[(Browser localStorage)]
  C[CSV file] --> D{Valid?}
  D -- Yes --> B
  D -- No --> E[Error, keep old data]
  B --> F[Month, Category, Status filters]
  F --> G[Cards, chart, table]
```

The filters, chart, CSV upload, and reset button belong to the generated app. Ask for changes in the Enter chat (see [Prompting tips](https://converge-enter-documentation.mintlify.site/en/articles/prompting-tips.md)). Your layout may differ. Use the sample rows and expected totals to check it.

## Before you start

* [Sign in to Enter](https://converge-enter-documentation.mintlify.site/en/articles/sign-up-and-log-in.md) with permission to create a project.
* Have a plain-text editor to save two small CSV files. CSV means comma-separated values: a header row, then one row per order.
* No [Cloud](https://converge-enter-documentation.mintlify.site/en/articles/create-and-manage-an-enter-cloud-instance.md), database, outside account, or payment setup is needed. You do not need to [publish](https://converge-enter-documentation.mintlify.site/en/articles/publish-site.md).

## Build and test it

**1. Step 1 · Create the Studio Sales project**

On the Enter **Homepage**, paste the whole starter prompt, including the six sample rows, into the input box and send it. Fixed rows make totals easy to check.

```plaintext theme={null}
Build a responsive, single-page dashboard named Studio Sales for a small creative studio. Use a navy-and-cream layout with orange chart bars. Label it "Sample data - documentation demo" and "Illustrative figures · saved in this browser". Use fictional data only.

Data schema: date,customer,category,amount,status.
Dates are YYYY-MM-DD calendar dates. Derive the month from that date without timezone shifts. Amount is a numeric USD order value. Status must be Completed, Pending, or Canceled.

Start with exactly these six rows:
date,customer,category,amount,status
2026-10-01,Nora,Workshop,120,Completed
2026-10-02,Alex,Pottery,80,Completed
2026-10-03,Sam,Workshop,120,Canceled
2026-11-01,Mia,Workshop,150,Completed
2026-11-02,Leo,Pottery,90,Completed
2026-11-03,Eva,Workshop,150,Pending

Add Month, Category, and Status dropdown filters, each with an All option. Combine active filters so a row must match all selections. Show how many orders match. Use the same filtered rows for every card, chart, and table total.

Create three cards:
- Total order value: sum the amount of every filtered row, including Pending and Canceled orders when their statuses are selected. This is order value, not recognized revenue.
- Orders: count the filtered rows.
- Average order value: total order value divided by the filtered order count, displayed to two decimal places. For zero rows, show $0.00 and 0 orders without a division error.

Add an Order value by category bar chart, sorted by filtered amount from highest to lowest. Add an Orders table with date, customer, category, amount, and status. Show an empty state when no rows match.

Add an Import your own CSV panel with a Choose CSV file button. Require the exact header date,customer,category,amount,status. Validate every row before replacing the current dataset. Reject missing columns, invalid calendar dates, missing values, nonnumeric amounts, and unsupported statuses. Display a useful error and keep the previous data after any failed import. For a missing amount column, display exactly:
Missing required column: amount. The header row must be date,customer,category,amount,status.

A valid CSV replaces the dataset rather than appending rows. Show the imported filename and row count. Save the current dataset and its label in browser localStorage so reloading the same preview in the same browser keeps the import. Explain that localStorage saves data in this browser only and does not sync between users or devices.

Add a Reset sample data button that replaces imported data with the original six sample rows and updates localStorage. Keep all behavior in the browser. Do not add Enter Cloud, a database, authentication, API calls, payment, or an external service connection.

Check these results with all unspecified filters set to All:
All: $710.00 total, 6 orders, $118.33 average.
November 2026: $390.00 total, 3 orders, $130.00 average.
Status Completed: $440.00 total, 4 orders, $110.00 average.
Category Workshop: $540.00 total, 4 orders, $135.00 average.
```

If Enter shows a [**Plan**](https://converge-enter-documentation.mintlify.site/en/articles/review-a-plan-before-building.md), check that it has the five CSV fields, combined filters, and browser-only storage. Click **Build Now**. When the build finishes, look in [**Preview**](https://converge-enter-documentation.mintlify.site/en/articles/visual-editing.md) for three filters, three cards, a category chart, an orders table, and a CSV panel.

| **Field** | **What it does** |
| - | - |
| **date** | Sets the month. |
| **customer** | The sample buyer. |
| **category** | Groups the work, such as Workshop or Pottery. |
| **amount** | The order value in US dollars. |
| **status** | Completed, Pending, or Canceled. |

**2. Step 2 · Check the six sample orders**

Set **Month**, **Category**, and **Status** to **All**. If the app has imported data, click **Reset sample data** first. You should see:

* **Total order value:** \$710.00
* **Orders:** 6
* **Average order value:** \$118.33
* Chart: Workshop $540.00 and Pottery $170.00

![Studio Sales with all filters set to All and sample totals](https://mintcdn.com/converge-enter-documentation/Dl1DSbRP-YuWE4KM/images/enter-help/1.11/dashboard-all.png?fit=max\&auto=format\&n=Dl1DSbRP-YuWE4KM\&q=85\&s=86054497d3a7f13f3cc4e401355b88f7)

All filters set to All: $710.00 total, 6 orders, $118.33 average.

The two bars add up to the card total (\$540 + \$170 = \$710). With Status on **All**, the total includes Sam's Canceled order (\$120) and Eva's Pending order (\$150). Without them, the Completed total is \$440.

**3. Step 3 · Compare filtered totals**

Set **Category** to **Workshop**. Expect $540.00, 4 orders, and a $135.00 average. The chart and table should show the same four orders.

![Workshop filter applied consistently to dashboard cards, chart, and table](https://mintcdn.com/converge-enter-documentation/Dl1DSbRP-YuWE4KM/images/enter-help/1.11/filter-workshop.png?fit=max\&auto=format\&n=Dl1DSbRP-YuWE4KM\&q=85\&s=4057df93454f7bd3987eca125571b30a)

Category set to Workshop: cards, chart, and table all use the same four orders.

Filters combine, so a row must match every choice. Reset all filters to **All** before each check below.

| **Filter** | **Total** | **Orders** | **Average** |
| - | - | - | - |
| Month: November 2026 | \$390.00 | 3 | \$130.00 |
| Status: Completed | \$440.00 | 4 | \$110.00 |
| November 2026 + Workshop + Completed | \$150.00 | 1 | \$150.00 |

**4. Step 4 · Import two example orders**

Save this text as **sample-import.csv** in a plain-text editor. Keep the header exactly as shown. Type amounts as plain numbers, with no currency symbol.

```csv sample-import.csv theme={null}
date,customer,category,amount,status
2026-11-05,Demo Buyer,Workshop,200,Completed
2026-11-06,Sample Visitor,Pottery,50,Pending
```

In **Import your own CSV**, click **Choose CSV file** and pick the file. Set all filters to **All**.

![Studio Sales after a successful two-order CSV import](https://mintcdn.com/converge-enter-documentation/Dl1DSbRP-YuWE4KM/images/enter-help/1.11/import-success.png?fit=max\&auto=format\&n=Dl1DSbRP-YuWE4KM\&q=85\&s=1dec56f272bfdce927987a16e3d7825a)

After a successful import: \$250.00, 2 orders, and sample-import.csv under Current data.

Check that **Current data** shows sample-import.csv and 2 rows. The cards should read $250.00, 2 orders, and $125.00 average. The chart shows Workshop $200.00 and Pottery $50.00. Reload the same preview in the same browser. The import should remain. Keep your CSV file to load it again later.

**5. Step 5 · Test an invalid CSV**

Save this file as **invalid-import.csv**. It omits the **amount** column on purpose.

```csv invalid-import.csv theme={null}
date,customer,category,status
2026-11-05,Demo Buyer,Workshop,Completed
```

Choose it with **Choose CSV file**. The app should reject it with an error that includes:

```plaintext theme={null}
Missing required column: amount. The header row must be date,customer,category,amount,status.
```

![Invalid CSV rejected because the amount column is missing](https://mintcdn.com/converge-enter-documentation/Dl1DSbRP-YuWE4KM/images/enter-help/1.11/import-error.png?fit=max\&auto=format\&n=Dl1DSbRP-YuWE4KM\&q=85\&s=2039da30ff20917cf310473dcb05d2d7)

The missing amount column is rejected. The previous two orders stay in place.

Current data should still be sample-import.csv with 2 rows, and the cards should still show \$250.00. A bad file never replaces good data.

**6. Step 6 · Restore the sample dataset**

Click **Reset sample data** and set all three filters to **All**. Nora, Alex, Sam, Mia, Leo, and Eva return. The cards read $710.00, 6 orders, and $118.33.

## Limitations

* Data lives in your browser's localStorage. It stays in one browser and does not sync between people or devices.
* Importing a CSV replaces the current data. It does not add to it.
* The cards show order value, not earned revenue. Canceled and Pending orders count when selected.
* This tutorial ends in Preview and is not published. Before you use real studio records, decide who has access and where shared data lives.

## Troubleshooting

> [accordion] The sample total is not \$710.00
>
> Click **Reset sample data** and set all filters to **All**. Compare each amount and status with the prompt's six rows.

> [accordion] The chart changes but a card or the table does not
>
> Ask Enter to use one shared filtered dataset for every card, chart value, and table row. Then retest Workshop.

> [accordion] The CSV reports a missing amount column
>
> Restore the exact header **date,customer,category,amount,status**. Give every row a numeric amount.

> [accordion] The imported total is $200.00, not $250.00
>
> Check **Status**. Completed leaves out the \$50 Pending order. Choose **All**.

> [accordion] The sample rows return after a reload
>
> Use the same preview in the same browser, and do not clear its stored data. Import the CSV again if needed.

If a calculation is wrong, tell Enter your filters, the rows that should match, and the actual and expected totals. For example:

```plaintext theme={null}
In Studio Sales, Category Workshop with Month All and Status All must show $540.00, 4 orders, and a $135.00 average. The chart and table must use those same four rows. Fix the filtering or aggregation without changing the layout. Retest the valid import, missing-amount rejection, and reset afterward.
```

## Check your result

* [ ] The six samples total $710.00, 6 orders, $118.33 average.
* [ ] The two-order import shows $250.00, 2 orders, $125.00 average, and survives a reload.
* [ ] The missing-amount file is rejected and leaves the data unchanged.
* [ ] Reset sample data brings back the original six rows.

## Common questions

> [accordion] Can my team see the same data?
>
> Not in this version. Data stays in one browser. A shared source needs Enter Cloud or a [connector](https://converge-enter-documentation.mintlify.site/en/articles/set-up-and-manage-connectors.md).

## Keep going

> [card] [Next: Set up and manage connectors](https://converge-enter-documentation.mintlify.site/en/articles/set-up-and-manage-connectors.md)
>
> Connect a shared data source so your team sees the same numbers.

> [card] [Publish your site](https://converge-enter-documentation.mintlify.site/en/articles/publish-site.md)
>
> Share it after your checks pass.

> [card] [Enable and verify Analytics](https://converge-enter-documentation.mintlify.site/en/articles/enable-and-verify-analytics.md)
>
> Track visits to your site.

> [card] [Manage an Enter Cloud instance](https://converge-enter-documentation.mintlify.site/en/articles/create-and-manage-an-enter-cloud-instance.md)
>
> Store shared data in Enter Cloud.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.