# Query Builder

Once the user clicks on a metric, a query is created in the background and a widget is automatically added in the Tab area. \
Now by clicking on this widget user can make changes to the underlying query which is fetching data for that particular metric.

<figure><img src="/files/9JFZVnEJXeckMAM9dPOm" alt=""><figcaption><p>Build Query option opens the Query Builder pane from right side</p></figcaption></figure>

## Builder

User can tune their query by opening the query builder. \
The Query builder acts as a no code tool, user does not need to write the query to fetch the data. They can just select fields for which they want the data to be included in the resulting dataset.

<figure><img src="/files/Z7cabcpE8XH44fM9Oon2" alt=""><figcaption><p>Builder section in Query Builder pane</p></figcaption></figure>

## Plot

The plot section gives user these abilities:

* Change Chart type of the visualisation.
* Select what value is there in the X-Axis.
* Select what value is there in the Y-Axis.
* Select Y-Axis Labels.
* Group-by data among 2 columns.
* Ability to add Reference line in the chart.&#x20;

<figure><img src="/files/TBmdU8Tdlg3pDwsEegEU" alt=""><figcaption><p>Query Builder panel > Plot section</p></figcaption></figure>


---

# Agent Instructions: 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:

```
GET https://docs.apica.io/data-management/overview-1/query-builder.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
