# Excel Connection

{% hint style="success" %}
*Check out the given illustration on how to create an Excel connection and associate it to a charting component.*
{% endhint %}

<figure><img src="https://859511478-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FGDmsjfjJBNqow7Fo97cO%2Fuploads%2FJAM6tJvpT2el9WwyxXve%2FExcel%20connector.gif?alt=media&#x26;token=e6cb8831-e073-4bef-8653-d59aad913471" alt=""><figcaption></figcaption></figure>

* Click the ***Data Connectors*** icon to display all the available data sources.
* Click the ***Create New Connection*** icon provided next to the ***Excel*** option.
* A new connection gets added under the Excel connection type.
* The connection-specific details get displayed on the right side of the page.

<figure><img src="https://content.gitbook.com/content/nyOeUTaPuBluyvesHVm9/blobs/a1Tcf3HMjkMrNP68FWsn/image.png" alt=""><figcaption><p><em><strong>Creating an Excel Data Connection</strong></em></p></figcaption></figure>

* Configure the following information:
* ***Name*****:** Name the connection.
* ***Browse:*** Click the ***Browse*** icon to browse an Excel file.
* ***Sheet Name*****:** Select a specific sheet using the drop-down menu.
* ***Load at Start*****:** Enable this option to get the updated data from the data source before loading it into charts.
* The ***Field Set*** tab displays all the fields after establishing the data connection.

<figure><img src="https://859511478-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FGDmsjfjJBNqow7Fo97cO%2Fuploads%2FUGCK0czlXufavQc2Q3WK%2Fimage.png?alt=media&#x26;token=3f9130c1-58ee-4196-8954-3b2920bee777" alt=""><figcaption><p><em>Configuring the connection and getting the data</em></p></figcaption></figure>

Select the ***Condition*** tab and provide a condition to be applied as a filter on the selected data by putting checkmarks in the given boxes. E.g., The selected Conditions for the ***Category*** field is ***Catalog***.

<figure><img src="https://859511478-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FGDmsjfjJBNqow7Fo97cO%2Fuploads%2FwyEwwAnQuhrRXYqXaPzP%2Fimage.png?alt=media&#x26;token=c78764c9-8462-4891-86ee-b1e7c9365d89" alt=""><figcaption><p><em>The Condition tab</em></p></figcaption></figure>

{% hint style="info" %}
*<mark style="color:green;">Please Note:</mark> Click on the **Script on Load** icon provided next to the connection to navigate to the Script tab where the user can trigger a script to produce some action on the connection.*
{% endhint %}


---

# 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.bdb.ai/governed-dashboards-5/connecting-to-a-data-source/establishing-a-data-connection/excel-connection.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.
