---
title: "Use the visual builder"
description: "The visual builder offers a generic way to query stored information using a specific proprietary framework built on top of open-source query engines"
url: https://docs.ovhcloud.com/pt/guides/public-cloud/data-platform/analytics-manager-queries-visual-builder
lang: pt
lastUpdated: 2026-09-14
---
> For AI agents: the complete documentation index is available at https://docs.ovhcloud.com/pt/llms.txt, the full documentation bundle is available at https://docs.ovhcloud.com/pt/llms-full.txt.

# Use the visual builder

## Objective

The visual builder offers a **generic way to query stored information** using a specific proprietary framework built on top of open-source query engines.

Queries are created by populating the 4 following fields with **attributes** from your [Lakehouse Manager](https://docs.ovhcloud.com/pt/guides/public-cloud/data-platform/landing-page-lakehouse-manager.md):

- [Data](#configure-the-field-data): the measures that you want to aggregate
- [Scale](#configure-the-field-scale): the dimensions by which you want to group your data
- [Filter](#configure-the-field-filter): to filter the results of your query
- [Order](#configure-the-field-order): to sort the results of your query

In addition, you can set a _limit_ to the number of rows returned by the interface by using the widget next to the Run button. This limit will not be saved in the query for downstream processes (APIs and apps).

![Visual overview](/images/public-cloud/data-platform/product/am/queries/picts/visual-overview.png)
[Learn how to configure a query](#configure-the-field-data)

### How does it work?

Let's assume for instance that the people in charge of developing visualization dashboards want to display a turnover curve (attribute: _income_) by date (attribute: _date_).

![How does it work? — Usecase1](/images/public-cloud/data-platform/product/am/queries/picts/usecase1.png)
1. The visual builder interface can be used to specify the data to display (_**data**_: _income_), and the metric with which to group this data by (_**scale**_: _date_).
2. At this point the builder automatically determines which table is the most appropriate for the query - the **smallest to contain all required attributes**. In the example, "agr\_shop\_date", which is a table with income data aggregated by dates, will be selected and queried.

:::info
The visual builder does not ask you to specify a table. This ensures that your Project can scale easily in time as the storage system you use for your data varies (nature, amount of information stored, data warehouse schema, etc.)
:::

3. Finally the results are sent back to the user as a [light-weight, DBMS-agnostic JSON object](#discover-the-response-format).

![How does it work? — Usecase2](/images/public-cloud/data-platform/product/am/queries/picts/usecase2.png)
## Configure the field Data

In the field _Data_ enter the **attributes that you want to display**. It is possible to aggregate the data to display, using [simple aggregation functions](#aggregation-functions).

![Configure the field Data — Visual data1](/images/public-cloud/data-platform/product/am/queries/picts/visual-data1.png)
You can add as many attributes as you want as long as they exist in the same table, otherwise an error will be returned. The list of available attributes in the interface is automatically filtered to only display the other available attributes.

You [don't need to specify the table](#choice-of-table). Use the widget to the left of the screen to get metadata about the tables and attributes you want to query.

![Configure the field Data — Visual table details](/images/public-cloud/data-platform/product/am/queries/picts/visual-table-details.png)
### Aggregation functions

- **SELECT**: The _SELECT_ function simply displays the value of the selected attribute. It will select the first value of the list if several values are returned.
- **SUM**: The _SUM_ function is used to calculate the total sum of the values of an attribute.
- **COUNT**: The _COUNT_ function is used to count the number of occurrences returned by the query.
- **COUNT DISTINCT**: The _COUNT DISTINCT_ function is used to count the unique different values of an attribute.
- **MIN & MAX**: The _MIN_ & _MAX_ functions are used to display the minimum and maximum values of an attribute.
- **SELECT DISTINCT**: The _SELECT DISTINCT_ function is used to display the unique different values of an attribute.
- **AVG**: The _AVG_ function is used to calculate the arithmetic average of an attribute.

### Choice of table

The visual builder does not ask you to specify a table. By default,the Platform determines the table that is the most fit for the query: it is the table containing all attributes in the data, scale, filter and order fields which has the least amount of rows.

If you want the query to be forced on a specific table, you can always override the system-automatically-chosen tables and select your own by clicking the **table icon** next to _Data_.

![Choice of table — Visual force table](/images/public-cloud/data-platform/product/am/queries/picts/visual-force-table.png)
:::info
Forcing the queried table can come in handy when certain attribute names (such as "date") are common to a large number of tables. However, it is not a good practice as the Analytics Manager is designed to fetch the data using an optimal path to reduce runtime.
:::

## Configure the field Scale

In the field _Scale_, enter the attributes (usually dimensions) that you want to **group your [Data](#configure-the-field-data) attributes (usually measures) by**.

![Configure the field Scale — Visual scale1](/images/public-cloud/data-platform/product/am/queries/picts/visual-scale1.png)
:::info
An example of use case is if the query needs to return the revenue amount per month or the revenue amount per store.
:::

You can add as many attributes as you want as long as they exist in the same table, otherwise an error will be returned. The list of available attributes in the interface is automatically filtered to only display the other available attributes.

## Configure the field Filter

This parameter is used to apply filters to the values that the query is expected to return.

:::info
Filters are particularly useful to prevent nulls or unlabeled values to be displayed or taken into account.
:::

![Configure the field Filter — Visual filter1](/images/public-cloud/data-platform/product/am/queries/picts/visual-filter1.png)
Enter the reference values for **string-datatype** filters as is, without the _" "_ around the string. Enter the reference values for **numeric-datatype** filters as is too.

:::info
Use the widget panel _"See table details"_ to the left of the screen to check the type of the attributes to use as filters.
:::

Below is the list of all filter options available:

- _Equal_ - Value is equal to reference.
- _Not equal_  - Value is not equal to reference.
- _In_ - Value contained in reference list (press Enter to add a value to the list).
- _Not In_ - Value not contained in reference list (press Enter to add a value to the list).
- _Greater than_ (>) - Value is greater than a reference.
- _Greater than equal_ (>=) - Value is greater than or equal to a reference value.
- _Lower than_ (\<)  - Value is lower than a reference value.
- _Lower than equal_ (\<=) - Value is lower than or equal to a reference value.
- _Between_ - Value is between 2 values.
- _Not between_ - Value is not between 2 values.
- _Null_ - Value is null.
- _Not null_  - Value is not null.
- _Like_  - Substring of value is contained in reference value (formatted using [SQL LIKE syntax](https://sql.sh/cours/where/like)).
- _Not like_  - Substring of value is not contained in another reference value (formatted using [SQL LIKE syntax](https://sql.sh/cours/where/like)).

## Configure the field Order

This parameter is used to order the results returned by the query based on the order of values of one or more fields, in ascending or descending order.

![Configure the field Order — Visual order1](/images/public-cloud/data-platform/product/am/queries/picts/visual-order1.png)
:::info
Attributes in the [Scale](#configure-the-field-scale) field are not added to the _Order_ field by default, in order to optimize runtimes.
:::

## Discover the response format

When a query is executed through the visual mode, the results are returned using the following format.

```json
[
    {
      "scales": {
        "company": "Snapchat"
      },
      "data": {
        "sales": {
          "avg": [
            {
              "company": "Snapchat",
              "value": 494.96303030302937
            }
          ]
        }
      }
    },
    {
      "scales": {
        "company": "Pied Piper"
      },
      "data": {
        "sales": {
          "avg": [
            {
              "company": "Pied Piper",
              "value": 492.7505523255817
            }
          ]
        }
      }
    },
    {
      "scales": {
        "company": "Google"
      },
      "data": {
        "sales": {
          "avg": [
            {
              "company": "Google",
              "value": 501.16340892465297
            }
          ]
        }
      }
    },
    {
      "scales": {
        "company": "Facebook"
      },
      "data": {
        "sales": {
          "avg": [
            {
              "company": "Facebook",
              "value": 512.5209205642168
            }
          ]
        }
      }
    }
]
```

To view the raw response sent by the Analytics Manager when your query is executed, visualize the results as a table. Then click on the **gear icon** and activate _Display raw response_.

![Discover the response format — Visual raw response](/images/public-cloud/data-platform/product/am/queries/picts/visual-raw-response.png)
Finally, it is possible to export the query results in various different formats (such as a .csv, copying tab-separated values, etc.) by clicking on the **Download** button next to the Run button.

![Discover the response format — Export](/images/public-cloud/data-platform/product/am/queries/picts/export.png)
## Go further

If you need training or technical assistance to implement our solutions, contact your sales representative or click on [this link](https://www.ovhcloud.com/pt/professional-services/) to get a quote and ask our Professional Services experts for a custom analysis of your project.

Ask questions, give your feedback and interact directly with the team building the Data Platform on the dedicated [Discord channel](https://discord.gg/ovhcloud).

If you need support with your OVHcloud services, create a request in our [Help Centre](https://help.ovhcloud.com/csm?id=csm_get_help).

Join our [community of users](https://community.ovhcloud.com/).
