# Report Parameters

Reportql simplifies data visualization for users by allowing the use of various parameters. Below is a guide explaining the usage of different parameter types and their integration with dashboard elements.

These parameters are configured to affect dashboard elements. For example, selecting a date range can limit data visualization to a specific time period.

With this guide, you can optimize your data visualization processes and create user-friendly dashboards using Reportql.

### General Info

*After defining the parameter, you can use it in your queries using the programmatic name. (@startDate and @endDate are programmatic names of defined parameters)*

```
select * from orders where startdate between @startDate and @endDate 
```

*If you have an optional parameter, you can use it as follows:*

```
select * from customers where (@customerName is null or name = @customerName)
```

### Parameter Types

#### **Text**

Allows users to input free text. Ideal for fields like username, description, or comments.

#### **Integer**

Allows users to input integer values. Used for numerical data like age, quantity, or ranking values.

#### **Date**

Allows users to select dates. Facilitates data entry in date format.

#### **Checkbox**

Allows users to confirm an option. Used for binary choices like true/false or yes/no.

#### **Dropdown**

Allows users to select from predefined options. The list is fixed and cannot be changed.

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

#### **Query Dropdown**

Allows users to select from options dynamically pulled from a data source.

* **Name field**: the name of the column to be displayed in the dropdown&#x20;
* **Value field**: ID column
* **Example Usage**: Product list, customer list.

```
SELECT ID, product_name FROM products
```

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

#### **Autocomplete**

Provides auto-completion suggestions from predefined options as users enter text.

* **Name field**: the name of the column to be displayed in the dropdown&#x20;
* **Value field**: ID column
* **Filter field**: Field to filter in search
* **Example Usage**: Product list, customer list.

```
SELECT ID, product_name FROM products
```

<figure><img src="/files/fT2XoM5BipIioKUFrtkR" alt=""><figcaption></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://kuadron.gitbook.io/reportql/report/create-dashboard/report-parameters.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.
