When analyzing data, you can create data tables using custom SQL statements for complex logic or models. These statements can be customized with variable settings to accommodate more complex and dynamic analysis scenarios.
in the upper left corner to select a region.
on the SQL editing page to name the custom data table. If the custom data table is not named, the default data table name sql is used.Example: Sort data1, data2, and data3 in the data table into a dataset.
SELECT*FROMdataWHEREcity IN ('data1', 'data2', 'data3')and date > ${param}
During data analysis, if you need to upload parameters to SQL when viewing dashboards or large screens, you can set SQL parameters. This section describes how to set SQL parameters.
Figure 1 Parameter setting page

Parameter | Description |
|---|---|
Variable | Variable name. |
Type | Three variable types are supported: text, number, and date. |
Default Value Range | The value can take effect globally or only on the editing page.
|
Query Default Value | The parameter is optional. If the dataset is too large and cannot be saved, or if the dashboard query takes too long, it is recommended to adjust the default query value. |
The SQL code needs to be modified for different analysis scenarios.
in the upper left corner to select a region.If a dataset is created using custom SQL statements, "SQL" is displayed next to the dataset name in the Name column on the Datasets page.
Figure 2 Configuring fields
