---
description: In this Tableau Data Connections tutorial, you will learn Connecting to various data sources or Connection to Text File, Connecting to Excel File, Connection to Database Connection to Websites, Connecting to Tableau Server Data.
title: Tableau Data Connections to Databases &#038; Multiple Sources
image: https://www.guru99.com/images/tableau-data-connections-1.png
---

 

[Skip to content](#main) 

**⚡ Smart Summary**

Tableau Data Connections cover every route data takes into a workbook, from flat files to live databases, web connectors, and published server sources. This page walks through each connection type, joins, unions, sorting, and source replacement.

* 📁 **File Sources:** Text, Excel, and PDF files connect straight from the Data tab, with no driver setup.
* 🗄️ **Database Sources:** Native and ODBC connectors reach MySQL, Oracle, and other servers using host, port, and credentials.
* 🔗 **Combining Tables:** Joins match rows on a key, unions stack matching headers, and relationships defer the join until a view runs.
* 🔢 **Join Types:** Inner, left, right, and outer joins decide which unmatched rows survive; Tableau accepts 32 tables per source.
* ♻️ **Source Replacement:** Swapping a source keeps existing sheets intact if the replacement retains every used dimension and measure.

[ Read More ](javascript:void%280%29;) 

![Tableau Data Connections](https://www.guru99.com/images/tableau-data-connections-1.png)

In this Tableau Data Connections tutorial, you will learn about different data sources or data connections in Tableau.

## Tableau Connecting to Various Data Sources

[Tableau](https://www.guru99.com/what-is-tableau.html) can connect to various types of data sources. It can connect to text files, excel files, PDF files, etc. It can also connect to various databases using its ODBC connector, as well as to servers and web connectors. The sections below cover the connection procedure for each of these Tableau data sources.

Following screenshot gives the exhaustive connection types Tableau supports

[](https://www.guru99.com/images/tableau/060818%5F0511%5FTableauConn1.jpg)

File-based sources sit on the left of that pane and servers in the middle. The sections below follow the same order.

## Connecting to Text File in Tableau

**Step 1)** Click on the “Text File” option given in the data tab.

[](https://www.guru99.com/images/tableau/060818%5F0511%5FTableauConn2.jpg)

**Step 2)** In the next screen,

1\. Select the [SuperStore.csv ](https://drive.google.com/uc?export=download&id=1xV%5F3j-kn7UbHBpLd47DgY5g6obdbmQk1)

2\. Click on “Open” Option. This will connect the text file into Tableau.

[](https://www.guru99.com/images/tableau/060818%5F0511%5FTableauConn3.jpg)

In the left pane you will see the CSV file.

[](https://www.guru99.com/images/tableau/060818%5F0511%5FTableauConn4.png)

## Connecting to Excel File in Tableau

**Step 1)** Click on the “[Microsoft Excel](https://www.guru99.com/introduction-to-microsoft-excel.html)” option given in the data tab.

[](https://www.guru99.com/images/tableau/060818%5F0511%5FTableauConn5.jpg)

**Step 2)** In the next screen,

1. Select the [SuperStore.xlsx](https://drive.google.com/uc?export=download&id=1wq60dEFV3NUPqpwXaMKtmQPnxzqZHR5F)
2. Click on “Open” Option.

[](https://www.guru99.com/images/tableau/060818%5F0511%5FTableauConn6.jpg)

**Step 3)** It connects the excel file into Tableau. The sheets present in the excel file is shown on the left side of the window.

[](https://www.guru99.com/images/tableau/060818%5F0511%5FTableauConn7.jpg)

## Connection to Database

**Step 1)** Click on the required database connection given in the data tab. For example, if you want to connect to MySQL database, click on the “[MySQL](https://www.guru99.com/mysql-tutorial.html)” Option.

[](https://www.guru99.com/images/tableau/060818%5F0511%5FTableauConn8.jpg)

**Step 2)** This will open MySQL connection window.

1. You can enter the MySQL server name and edit the “Port” if needed.
2. Enter the username and password used to connect the database.
3. Click on the “Sign in” button to connect to the database.

[](https://www.guru99.com/images/tableau/060818%5F0511%5FTableauConn9.jpg)

This connects the database into Tableau. You can select tables from the database, import them, and join multiple tables by creating a relationship between them.

## Connection to Websites

Tableau can connect to websites using Tableau data connectors. The connection procedure is given as follows.

**Step 1)** In this window,

1. Click on “More” option in the data tab.
2. Select “Web Data Connector” from the list.

[](https://www.guru99.com/images/tableau/060818%5F0511%5FTableauConn10.jpg)

**Step 2)** This will open a Tableau Web Data Connector window where you need to enter the web connector details.

[](https://www.guru99.com/images/tableau/060818%5F0511%5FTableauConn11.jpg)

### RELATED ARTICLES

* [Types of Filters in Tableau: Condition by Formula, Extract, Context ](https://www.guru99.com/filter-data-tableau.html "Types of Filters in Tableau: Condition by Formula, Extract, Context")
* [Groups in Tableau: Create Groups, Hierarchy, Sets ](https://www.guru99.com/tableau-sort-data.html "Groups in Tableau: Create Groups, Hierarchy, Sets")
* [Tableau Charts & Graphs Tutorial: Types & Examples ](https://www.guru99.com/tableau-charts-graphs-tutorial.html "Tableau Charts & Graphs Tutorial: Types & Examples")
* [Tableau Maps: Complete Tutorial of Mapping (Examples) ](https://www.guru99.com/tableau-maps.html "Tableau Maps: Complete Tutorial of Mapping (Examples)")

## How to Connect Tableau Desktop to Tableau Server

Tableau Server can store extracted data sources and data connections. At enterprise level it is important to keep the required connections in [Tableau Server](https://www.guru99.com/tableau-architecture.html), so every user can reach the data source easily. Data sets on the server connect to Tableau Desktop as follows.

**Step 1) Choose Tableau Server from options**

Select the “Tableau Server” option given in the data tab.

[](https://www.guru99.com/images/tableau/060818%5F0511%5FTableauConn12.jpg)

**Step 2) Open the Tableau server**

This opens the Tableau Server Sign in window. Click on the “Tableau Cloud” option, labelled “Tableau Online” in builds before the 2022 rename.

[](https://www.guru99.com/images/tableau/060818%5F0511%5FTableauConn13.jpg)

**Step 3) Sign in**

It opens the Tableau Cloud Sign In Window.

1. Enter the registered email id and password.
2. Click on ‘Sign In’ button.

[](https://www.guru99.com/images/tableau/060818%5F0511%5FTableauConn14.jpg)

**Step 4) Establish a connection**

This will connect Tableau Server into Tableau Desktop.

1. Select the data set as shown in the figure.
2. This will import the dataset into Tableau.

[](https://www.guru99.com/images/tableau/060818%5F0511%5FTableauConn15.jpg)

The next task is usually combining more than one table.

## Data Relationship

A relational Database/Excel file consists of multiple Tables/sheets. These multiple tables/sheets can be connected to each other in Tableau. This connection is established by ‘Join’ or ‘Union’ feature present in Tableau. The relationship between data in two or more tables needs to be specified while joining tables.

### Joins

Tableau can “join” tables, up to 32 in a single data source. While joining, the relationship between two or more tables can be specified using an inner join, left join, right join or outer join. The functionalities of each join type are explained in the table below,

| Inner Join                                                                                                                                                                                                                                                      | Left Join                                                                                                                                                                              | Right Join                                                                                                                                                               | Outer Join                                                                                                                          |
| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ----------------------------------------------------------------------------------------------------------------------------------- |
| It joins all the common records between two tables or sheets. The joining condition can be given based on the primary key. One or more joining conditions can be specified to join the tables. Many tables can be joined together in Tableau for visualization. | A left join is used to join all the records from a left table and common records from the right table. One or more join conditions can be specified to left join two different tables. | A right join is used to join all the records from a right table and common records from left table. Based on the requirements, one or more joining condition can be set. | An Outer join is used to join all the records from both left and right table. Joining conditions can be set to join common records. |

Let’s see an example of Join

**Step 1)** Once an Excel is connected, Drag the required sheet into data window as shown in the figure.

[](https://www.guru99.com/images/tableau/060818%5F0511%5FTableauConn16.jpg)

**Step 2)** You can connect multiple sheets by dragging the sheets into the data window. The relationship between the sheets can be given by connecting the data fields.

[](https://www.guru99.com/images/tableau/060818%5F0511%5FTableauConn17.jpg)

**Step 3)** In the data sheet

1. Click on the “Join” option as shown in the figure. By default, Tableau joins two tables by connecting a relationship between common column present in it.
2. You can edit the relationship by selecting the required joining Condition.
3. You can add one or more data relationship between the sheets or tables.

[](https://www.guru99.com/images/tableau/060818%5F0511%5FTableauConn18.jpg)

### Union

Union is used to append the data from two or more tables. In most cases, tables with the same headers are appended together using the union function, and no joining condition is required. The procedure is given as follows.

**Step 1)** Drag any of the sheet into data window as shown in the figure.

[](https://www.guru99.com/images/tableau/060818%5F0511%5FTableauConn19.jpg)

**Step 2)**  Right click on the sheet and select “Convert to Union” option.

[](https://www.guru99.com/images/tableau/060818%5F0511%5FTableauConn20.jpg)

**Step 3)** In the data union window.

1. Drag other sheets which need to be union.
2. Click on ‘OK’ to append or union all the sheets present in the window.

[](https://www.guru99.com/images/tableau/060818%5F0511%5FTableauConn21.jpg)

A data relationship is not needed to union sheets present in the data source.

## Relationships vs Joins in Tableau

Since version 2020.2 the canvas has an upper layer linking tables with a flexible line instead of a fixed join. That line is a relationship, and the choice changes the numbers a view returns.

A join runs immediately and produces one flattened table, so rows duplicate when one side has several matches. A relationship runs nothing until a worksheet requests fields, then queries at the right level of detail.

* **Use a relationship** when tables sit at different granularity, such as orders and returns, where duplicated measures would inflate totals.
* **Use a join** when a single flat table is genuinely wanted, such as a lookup adding descriptive columns.
* **Use a union** when tables share the same columns and only need stacking.

Joins remain available inside each logical table: double-clicking a table opens the physical layer containing the join dialog shown above.

## Data Sorting

Data present in the data source can be sorted based on the user requirement. It can be sorted using data source order, ascending, descending, ascending per table and descending per table.

Once the data is connected to Tableau, data sorting can be done using the “Sort Fields” option in the “Data Source” tab. Worksheet-level sorting differs and is covered in [sorting data in Tableau](https://www.guru99.com/tableau-sort-data.html).

[](https://www.guru99.com/images/tableau/060818%5F0511%5FTableauConn22.jpg)

## Replacing Data Source

Tableau can connect multiple data sources in a single workbook, and those sources can be used to build various sheets and dashboards. In some cases, a data source needs to be replaced with an updated file. Tableau has a replacing feature for this, and it does not affect visualizations already built on the old source. It is important to keep or replace all the used dimensions and measures while replacing the data source.

The procedure for replacing a data source is given as follows.

**Step 1)** Connect the new data source first, so both the current source and its replacement appear in the Data pane.

[](https://www.guru99.com/images/tableau/060818%5F0511%5FTableauConn23.jpg)

**Step 2)**

1. Select the Data Source to be replaced.
2. Right-click on the data source and select “Replace Data Source” option.

[](https://www.guru99.com/images/tableau/060818%5F0511%5FTableauConn24.jpg)

**Step 3)** It opens the data source replacement window.

1\. Select the current data source.

2\. Select replacement data source.

3\. Click on “OK” to replace the data source.

[](https://www.guru99.com/images/tableau/060818%5F0511%5FTableauConn25.jpg)

Building views from this data is covered in the [Tableau charts and graphs](https://www.guru99.com/tableau-charts-graphs-tutorial.html) tutorial.

## FAQs

🔀 What is data blending and how does it differ from a join?

A join combines tables inside one data source. Blending keeps two separate sources and merges aggregated results at sheet level, which is the option when sources cannot be joined directly.

🔒 Are database passwords stored inside the Tableau workbook?

Credentials are held separately from the workbook. On publishing, you choose whether viewers supply their own credentials or an embedded account serves everyone.

📉 Why do totals increase after joining two tables?

A join duplicates rows when one key matches several rows opposite, so measures count more than once. A relationship keeps each table at its own granularity and avoids the inflation.

🤖 Can AI suggest how tables should be connected?

Tableau proposes matching fields by comparing names and data types, and AI assistants explain likely keys. The suggestion still needs checking, because similar names do not guarantee the same meaning.

🧠 Does AI clean data before it reaches Tableau?

Tableau Prep Builder recommends splits, groupings, and value standardisation as a flow is built. These speed up cleaning, but each step needs review before the flow is scheduled.

#### Summarize this post with:

ChatGPT Perplexity Grok Google AI 

**Stay Updated on AI** **Get Weekly AI Skills, Trends, Actionable Advice.** 

##### Sign up for the newsletter

Subscribe for Free 

You have successfully subscribed.  
Please check your inbox. 

![AI-Newsletter]() Chosen by over **350,000+** professionals 

[Scroll to top ](#wrapper)Scroll to top 

× 

Toggle Menu Close 

Search for: 

Search

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://www.guru99.com/#organization","name":"Guru99","sameAs":["https://www.facebook.com/Guru99Official","https://twitter.com/guru99com"],"logo":{"@type":"ImageObject","@id":"https://www.guru99.com/#logo","url":"https://www.guru99.com/images/guru99-logo-v1-150x59.png","contentUrl":"https://www.guru99.com/images/guru99-logo-v1-150x59.png","caption":"Guru99","inLanguage":"en-US"}},{"@type":"WebSite","@id":"https://www.guru99.com/#website","url":"https://www.guru99.com","name":"Guru99","publisher":{"@id":"https://www.guru99.com/#organization"},"inLanguage":"en-US"},{"@type":"ImageObject","@id":"https://www.guru99.com/images/tableau-data-connections-1.png","url":"https://www.guru99.com/images/tableau-data-connections-1.png","width":"700","height":"250","caption":"Tableau Data Connections","inLanguage":"en-US"},{"@type":"BreadcrumbList","@id":"https://www.guru99.com/tableau-data-connections.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":"1","item":{"@id":"https://www.guru99.com","name":"Home"}},{"@type":"ListItem","position":"2","item":{"@id":"https://www.guru99.com/tableau","name":"Tableau"}},{"@type":"ListItem","position":"3","item":{"@id":"https://www.guru99.com/tableau-data-connections.html","name":"Tableau Data Connections to Databases &#038; Multiple Sources"}}]},{"@type":"WebPage","@id":"https://www.guru99.com/tableau-data-connections.html#webpage","url":"https://www.guru99.com/tableau-data-connections.html","name":"Tableau Data Connections to Databases &#038; Multiple Sources","dateModified":"2026-07-25T17:17:11+05:30","isPartOf":{"@id":"https://www.guru99.com/#website"},"primaryImageOfPage":{"@id":"https://www.guru99.com/images/tableau-data-connections-1.png"},"inLanguage":"en-US","breadcrumb":{"@id":"https://www.guru99.com/tableau-data-connections.html#breadcrumb"}},{"@type":"Person","@id":"https://www.guru99.com/author/davidcarter","name":"David Carter","description":"I'm David Carter, a Data Scientist specializing in data analytics and machine learning, solving complex problems with innovative data models.","url":"https://www.guru99.com/author/davidcarter","image":{"@type":"ImageObject","@id":"https://www.guru99.com/images/david-carter-author-120x120.png","url":"https://www.guru99.com/images/david-carter-author-120x120.png","caption":"David Carter","inLanguage":"en-US"},"worksFor":{"@id":"https://www.guru99.com/#organization"}},{"articleSection":"Tableau","headline":"Tableau Data Connections to Databases &#038; Multiple Sources","description":"In this Tableau Data Connections tutorial, you will learn Connecting to various data sources or Connection to Text File, Connecting to Excel File, Connection to Database Connection to Websites, Connecting to Tableau Server Data.","keywords":"Tableau","speakable":{"@type":"SpeakableSpecification","cssSelector":[".entry-title",".summary"]},"@type":"Article","author":{"@id":"https://www.guru99.com/author/davidcarter","name":"David Carter"},"dateModified":"2026-07-25T17:17:11+05:30","image":{"@id":"https://www.guru99.com/images/tableau-data-connections-1.png"},"copyrightYear":"2026","name":"Tableau Data Connections to Databases &#038; Multiple Sources","subjectOf":[{"@type":"HowTo","name":"How to Connect Tableau Desktop to Tableau Server","description":"Tableau Server can store extracted data sources and data connections in Tableau. In enterprise level, it is important to keep all the required data connections in Tableau Server. It helps all the users of the enterprise to connect to the data source easily. The data sets in the Tableau Server can connect to Tableau Desktop by following the given procedures.","step":[{"@type":"HowToStep","name":"Step 1) Choose Tableau Server from options","text":"Select the 'Tableau Server' option given in the data tab.","image":{"@type":"ImageObject","url":"https://cdn.guru99.com/images/tableau/060818_0511_TableauConn12.jpg"},"url":"https://www.guru99.com/tableau-data-connections.html#step1"},{"@type":"HowToStep","name":"Step 2) Open the Tableau server","text":"This opens the Tableau Server Sign in window. Click on 'Tableau Online' option.","image":{"@type":"ImageObject","url":"https://cdn.guru99.com/images/tableau/060818_0511_TableauConn13.jpg"},"url":"https://www.guru99.com/tableau-data-connections.html#step2"},{"@type":"HowToStep","name":"Step 3) Sign in","text":"It opens Tableau Online Sign In Window.","image":{"@type":"ImageObject","url":"https://cdn.guru99.com/images/tableau/060818_0511_TableauConn14.jpg"},"url":"https://www.guru99.com/tableau-data-connections.html#step3"},{"@type":"HowToStep","name":"Step 4) Establish a connection","text":"This will connect Tableau Server into Tableau Desktop.","image":{"@type":"ImageObject","url":"https://cdn.guru99.com/images/tableau/060818_0511_TableauConn15.jpg"},"url":"https://www.guru99.com/tableau-data-connections.html#step4"}]},{"@type":"FAQPage","mainEntity":[{"@type":"Question","name":"What is data blending and how does it differ from a join?","acceptedAnswer":{"@type":"Answer","text":"A join combines tables inside one data source before analysis. Blending keeps two separate data sources and merges aggregated results at the sheet level, which is the option when the sources cannot be joined directly."}},{"@type":"Question","name":"Are database passwords stored inside the Tableau workbook?","acceptedAnswer":{"@type":"Answer","text":"Credentials are held separately from the workbook. When publishing, you choose whether viewers are prompted for their own credentials or whether an embedded account is used for everyone."}},{"@type":"Question","name":"Why do totals increase after joining two tables?","acceptedAnswer":{"@type":"Answer","text":"A join duplicates rows when one key matches several rows on the other side, so measures are counted more than once. Using a relationship instead keeps each table at its own granularity and avoids the inflation."}},{"@type":"Question","name":"Can AI suggest how tables should be connected?","acceptedAnswer":{"@type":"Answer","text":"Tableau proposes matching fields automatically by comparing names and data types, and AI assistants extend this by explaining likely keys. The suggested key still needs checking, because similar names do not guarantee the same meaning."}},{"@type":"Question","name":"Does AI clean data before it reaches Tableau?","acceptedAnswer":{"@type":"Answer","text":"Tableau Prep Builder recommends splits, groupings, and value standardisation as a flow is built. These recommendations speed up cleaning, but each step should be reviewed before the flow is scheduled for production."}}]}],"@id":"https://www.guru99.com/tableau-data-connections.html#schema-32229","isPartOf":{"@id":"https://www.guru99.com/tableau-data-connections.html#webpage"},"publisher":{"@id":"https://www.guru99.com/#organization"},"inLanguage":"en-US","mainEntityOfPage":{"@id":"https://www.guru99.com/tableau-data-connections.html#webpage"}}]}
```
