> For the complete documentation index, see [llms.txt](https://docs.bdb.ai/bdb-documentation/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.bdb.ai/bdb-documentation/data-visualization/governed-dashboards/connecting-to-a-data-source/establishing-a-data-connection/merged-connection.md).

# Merged Connection

{% hint style="info" %}
Check out the given walk-through on how to create a data connection based on the multiple merged connections and associate it to a charting component.
{% endhint %}

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

* Click the **Data Connectors** icon.
* Create new connections using any data connector option (In this case, Excel connections are created. E.g., Connection-1, Connection-2).
* Create a connection under the ***Merged Data*** connector. (E.g., Connection-3).
* Configure the new connection created for Merged data by mapping the created Excel connections.
* Define a condition via the drop-down menu in the Criteria space. (E.g. ***Equal*** or ***Not Equal***)
* Click the ***Create Criteria*** icon.
* The Merged Fields displays all the data fields from the merged connections.

![](/files/iaLAfY4qrpaoUxmXerLG)

<mark style="color:green;">Please Note:</mark>

* The users can remove the fields added to the merged data connection using the ***Remove***  icon.

&#x20;     ![](/files/bcDnrvymWejR3Tz1RdkK)

* After clicking the ***Create Criteria*** icon, the created criteria get added to space.

![](/files/lVmoCGmE2bDh4MZLe3Fj)

* Trigger a script to produce some action on the connection part using the ‘**Script on Load**’  icon.

### Creating a Calculated Field

Select the ***Calculated Fields*** tab to access Calculated Field Editor and add the calculated fields.

* Click the ***Calculated Fields*** tab.
* Click the ***Add*** icon.

&#x20;     ![](/files/8YjtAAvOgEI1qN5d8Rcb)

* The Calculated Field Editor window opens.
* Provide a title for the calculated field.
* Insert calculation formula inside the Script Editor space.
* Click the ***Create*** option. &#x20;

&#x20;      ![](/files/DvyNRYc9xVCM5CHJZPl7)                           &#x20;

* The newly created Calculated field gets added under the ***Calculated Fields*** tab.

&#x20;     ![](/files/x4xmRRDFXhc3pvTXxebe)


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://docs.bdb.ai/bdb-documentation/data-visualization/governed-dashboards/connecting-to-a-data-source/establishing-a-data-connection/merged-connection.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
