How Does Tableau Get Data?

Cody Schneider••9 min read

Tableau’s real power isn’t just in its beautiful visualizations, but in its impressive ability to connect to almost any data you throw at it. Whether your data lives in a simple spreadsheet on your desktop or a massive cloud database, Tableau is built to be a bridge between your raw numbers and the valuable insights they contain. This article will walk you through exactly how Tableau gets data, explaining the different connection types and the steps to bring your information into a new dashboard.

GraphedGraphed

Build AI Agents for Marketing

Build virtual employees that run your go to market. Connect your data sources, deploy autonomous agents, and grow your company.

Watch Graphed demo video

Understanding Tableau's Data Connection Philosophy

At its core, Tableau was designed to help people see and understand data, no matter where that data resides. This user-centric philosophy drives its approach to data connections. Instead of forcing you to move all your data into a proprietary format or a single location, Tableau comes to your data. It provides a huge library of built-in connectors optimized for different file types, databases, and online services. This flexibility allows everyone from marketing analysts working with Excel sheets to data engineers querying cloud warehouses to use the same powerful platform for analysis and visualization.

Live Connections vs. Tableau Extracts: What's the Difference?

When you connect to a data source in Tableau, you have to make a fundamental choice between using a "Live" connection or creating an "Extract." This decision impacts your dashboard's performance, data freshness, and the load on your original data source. Understanding the trade-offs is crucial for building efficient and effective reports.

Free PDF · the crash course

AI Agents for Marketing Crash Course

Learn how to deploy AI marketing agents across your go-to-market — the best tools, prompts, and workflows to turn your data into autonomous execution without writing code.

Live Connections

A live connection does exactly what its name implies: it queries your data source directly in real-time. When a user interacts with a visualization (like filtering a chart or drilling down into a category), Tableau sends a query to the source database and displays the results.

When to use a live connection:

  • When you need up-to-the-second data. Live connections are ideal for monitoring dashboards where you need to track rapidly changing metrics, like in operations or real-time website analytics.
  • When you're working with a fast, high-performance database. If you’re connected to a powerful cloud data warehouse like Snowflake, Amazon Redshift, or Google BigQuery that’s optimized for fast analytical queries, a live connection can work very well.
  • When you want to avoid duplicating data. Live connections leave your data in its original source, which helps with data governance and security by not storing a separate copy inside Tableau.

The main drawback is that performance is entirely dependent on the speed of the underlying data source. If you have a slow database or a complex query, your dashboard will feel sluggish.

Tableau Extracts (.hyper files)

A Tableau Extract is a highly compressed snapshot of your data (or a subset of your data) that is stored in Tableau's proprietary .hyper format. When you create an extract, Tableau queries your original data source once, imports the data, and stores it in this optimized file. All subsequent interactions with your dashboard use this local, high-speed extract instead of querying the original database.

When to use a Tableau Extract:

  • When you want maximum dashboard performance. Extracts are almost always faster than live connections because the data is optimized for fast read operations and stored in a format Tableau understands perfectly. This is the most common reason people choose extracts.
  • When your data source is slow or overloaded. If connecting directly to your database would slow it down for other critical business operations, an extract takes the load off. You just query it once during the refresh schedule.
  • When you need to work offline. Since the data is stored in a file, you can save your workbook, disconnect from the internet, and continue analyzing your data.

The main trade-off is that the data is not real-time. It's only as fresh as your last refresh. You can schedule these refreshes to happen automatically (e.g., every hour or once a day) using Tableau Server or Tableau Cloud, but it will never be perfectly live.

Connecting to Data: A Step-by-Step Guide

Now, let’s get into the practical steps of connecting to a data source. The process starts on the "Connect" screen, which is the very first thing you see when you open Tableau Desktop.

1. The "Connect" Page

This page is your gateway to your data. It’s organized into three main sections:

  • To a File: This is for connecting to flat files stored locally on your computer or a network drive. Think Excel, CSV, PDF, and more.
  • To a Server: This section contains the extensive list of native connectors for databases, cloud applications, and data warehouses.
  • Saved Data Sources: If you've already configured and saved a data source from a previous project, you can easily reconnect to it here.

2. Connecting to Files

For many analysts, the journey begins with a simple Excel or CSV file. This is the most straightforward connection type and an ideal starting point.

Microsoft Excel and CSV Files

  1. On the connect page, under "To a File," click on Microsoft Excel (or Text file for a CSV).
  2. An "Open" window will pop up. Navigate to where your file is saved, select it, and click "Open."
  3. Tableau will now take you to the Data Source page. For an Excel file, you'll see a list of the sheets (tabs) in the workbook on the left.
  4. Drag the sheet you want to analyze onto the canvas area that says "Drag tables here."
  5. A preview of your data appears in the grid below, showing you the columns and rows to confirm it loaded correctly. You can now go to a worksheet to start building visualizations!

Tableau also offers a fantastic tool for messy spreadsheets called the Data Interpreter. If your Excel file has extra headers, merged cells, or footers, you can check the "Use Data Interpreter" box, and Tableau will intelligently find the actual data table and clean it up for you.

GraphedGraphed

Build AI Agents for Marketing

Build virtual employees that run your go to market. Connect your data sources, deploy autonomous agents, and grow your company.

Watch Graphed demo video

3. Connecting to Servers (Databases & Cloud Apps)

Connecting to a server is where Tableau's enterprise-grade capabilities shine. The process is similar for most server types but requires some credentials.

Relational Databases (e.g., SQL Server, PostgreSQL, MySQL)

  1. On the connect page, under "To a Server," click on the database type you want to connect to (e.g., PostgreSQL).
  2. A connection dialog box appears. Here, you will need to provide the necessary information to connect to the database:
  3. Click "Sign In." If the credentials are correct, you will be taken to the Data Source page.
  4. On the left, you can now select a Schema and search for tables within that database. Drag the tables you want onto the canvas just like you did with Excel sheets.

Cloud Data Warehouses (e.g., Snowflake, Google BigQuery)

Connecting to a cloud source is very similar to connecting to a standard database. You select the appropriate connector (e.g., Snowflake), an authentication window pops up (which might use OAuth to have you sign in via your web browser), and you enter your warehouse, database, and schema information before dragging tables to the canvas.

Joining and Blending Data in Tableau

Rarely does all the data you need live in a single table. More often, you’ll need to combine data from multiple tables or even different sources. Tableau provides two ways to do this: joining and blending.

Data Joining

Joins are performed when you have multiple tables from the same data source that you want to combine. Let’s say you have one table with sales transactions and another with customer information. As long as both tables have a common field (like CustomerID), you can join them.

You accomplish this visually on the Data Source page:

  1. Drag your first table onto the canvas (e.g., Sales).
  2. Drag your second table onto the canvas (e.g., Customers).
  3. Tableau will automatically try to create a join relationship. Click on the Venn diagram icon that appears to configure the join.
  4. You can choose the join type (Inner, Left, Right, Full Outer) and specify the fields that connect the two tables.

Once joined, the tables behave like a single table for your analysis in Tableau, combining columns from both sets.

Free PDF · the crash course

AI Agents for Marketing Crash Course

Learn how to deploy AI marketing agents across your go-to-market — the best tools, prompts, and workflows to turn your data into autonomous execution without writing code.

Data Blending

Data blending is used when you need to combine data from separate data sources in a single worksheet, for example, comparing sales from a SQL database with targets stored in an Excel file.

Blending works on a sheet-by-sheet basis. You first connect to your primary data source (e.g., SQL Server) and drag a field onto your view. You then connect to your secondary source (e.g., Excel). A small link icon appears next to the common dimension (e.g., Date). Clicking that link tells Tableau to aggregate the data from your secondary source at the level of the linking dimension of the primary source.

Blending is useful but has limitations and is generally more restrictive than joining. The best practice is to join tables at the data source level whenever possible.

Data Preparation and Management

Tableau’s data preparation process doesn’t end at the connection, you also have several tools available on the Data Source page to help clean and shape your data before analysis.

  • Data Interpreter: As already mentioned, this tool is a lifesaver for cleaning up unstructured Excel and CSV files.
  • Pivoting: If you have data that’s in a wide format but need a tall format, such as when you have columns for each month and not a single column for "Month" and "Value," you can use the Pivot option to transform it.
  • Custom SQL: For advanced users who prefer SQL, you can bypass the drag-and-drop interface and write your own Custom SQL query to pull in data from their database. It also allows for inline data transformations.

Final Thoughts

Tableau has proven its ability to connect to, optimize, and blend disparate data from nearly any source, which is a foundation of its success. Whether it’s a simple spreadsheet or a complex cloud data warehouse, Tableau offers a powerful, visual way to bring in your data for analysis. While Tableau is an incredibly powerful tool, it still comes with a significant learning curve. There’s real technical knowledge involved in managing data sources, understanding join types, and optimizing extracts. We recommend Graphed to seamlessly remove the technical headache, allowing you to focus on connecting and understanding data to build your strategic dashboard. With tools like Google Analytics and Shopify, you can quickly ask questions in plain language and get those first-time reports that refresh automatically, freeing up your time for analyzing insights instead of figuring out data connection.

Related Articles