> For the complete documentation index, see [llms.txt](https://docs.autonmis.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.autonmis.com/create-and-manage-your-first-dashboard/create-dashboards-from-sql-editor-or-sql-notebook/using-sql-notebook.md).

# Using SQL Notebook

Follow these steps to create a dashboard using a SQL Notebook:

1. Go to the **'SQL Notebook'** tab under the **'Notebook'** dropdown in the navigation bar.&#x20;
2. Create a SQL Notebook, write and run a SQL query. The results will appear in the **'Data'** tab.
3. Switch to the **'Metrics'** tab to enter **Distributed metric mode**. Here, you can create charts by dragging dimensions and measures into the X and Y axes. You can also select the chart type (Line, Area, Bar, Pie), and add a **chart name** and **description**.

<figure><img src="/files/f3puZ1zZOvsR6ALpwbuw" alt=""><figcaption></figcaption></figure>

4. For Aggregated metrics, choose a metric from the dropdown, select a function (SUM, AVG, COUNT, MAX), and provide a chart name.

<figure><img src="/files/pbNdeodnFQ5HFh0w5AnL" alt=""><figcaption></figcaption></figure>

5. Once your chart is ready, you can save it by clicking **'Save as DM'** (for Distributed mode) or **'Save as AM'** (for Aggregated mode).
6. To create a dashboard, click the **'Dashboard'** tab at the top of the notebook. From the list of available metrics, select the ones you want and click **'Go to Dashboard'**. Provide the **dashboard name** and **description**, then click **'Add'** to create it.

<figure><img src="/files/8u90f6pqokiFTzp0HBWf" alt=""><figcaption></figcaption></figure>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.autonmis.com/create-and-manage-your-first-dashboard/create-dashboards-from-sql-editor-or-sql-notebook/using-sql-notebook.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
