Connect Data Sources in Tableau

With Tableau, easily connect with over 80 data sources. Also, a sample Excel file is provided by Tableau and it is placed in the Tableau Repository folder. Let us see how to connect and import a data source in Tableau.

Let us see the steps to import the data from an Excel file and load it:

Steps to import data from Excel in Tableau

Begin with installing Tableau on your system. After installing, open Tableau.

On opening Tableau for the first time, on the left you can see the option to connect to a file or a server:

1. Tableau Layout to a file and server

Figure 1.1. Tableau Layout to a file and server

We will connect with the Microsoft Excel file, but from where we will get the sample data. Do not worry about that, Tableau provided you with sample data. Check bottom-left and the Saved Data Source section is visible:

2. Tableau Sample Data Sources

Figure 1.2. Tableau Sample Data Sources

Above, the Sample – Superstore and World Indicators file is visible. Since this is provided by Tableau itself, the path of these files is the following:

Here is the screenshot of the path displaying our sample data Sample – Superstor.xls:

3. Tableau Sample Superstore Repository

Figure 1.3. Tableau Sample Superstore Repository

From the Tableau, reach the Go to File section of the left and click Microsoft Excel:

4. Import an Excel file in Tableau

4. Import an Excel file in Tableau

After clicking Microsoft Excel, reach the same Tableau Repository path and select the same file Sample – Superstor.xls, and click Open:

5. Import sample data source excel file to Tableau

Figure 1.5. Import sample data source excel file to Tableau

We loaded our excel file successfully. On the left, the three workbooks Orders, People, and Returns of the excel file Sample – Superstore is visible:

6. Sample superstore data source workbooks in Tableau

Figure 1.6. Sample superstore data source workbooks in Tableau

Now, let us drag the Orders workbook from the left to the center i.e. where Drag Tables here to create a data model section is visible. This section is called canvas.

After dragging the workbook Orders, the table with the records will be visible as shown below:

7. Orders workbook of sample superstore in Tableau

Figure 1.7. Orders workbook of sample superstore in Tableau

The records with the fields are visible above. Right now, you are on the left of the Sheet 1 i.e. Data Source on the bottom left.

I will now zoom the table using CTRL+Click to let it be more visible. Now, I have also pointed to the datatypes visible above each column. The data type of the records itself displays what kind of records a column is having, such as text, number, date, etc:

8. Data type of each column of the excel visible in Tableau

Figure 1.8. The data type of each column of the excel is visible in Tableau

The number of rows and columns in the table is visible. In the text box, mention how many rows you want to display at a time. We entered 500 and pressed enter, and now 500 rows at a time are visible. Easily scroll down to view all the rows:

9. Total fields and rows of the table in Tableau

Figure 1.9. Total fields and rows of the table in Tableau

The Live and Extract option button is also visible under the Connection as shown above. What does that mean?

In Tableau, the choice between Live Connections and Data Extracts can significantly impact performance, data freshness, and overall user experience.

Live Connections

  • Real-time Data: Changes in the data source are immediately reflected in Tableau.
  • Resource Intensive: This can be slower, especially with large datasets, as it relies on the database for all queries.
  • Network Dependency: Performance can be affected by network speed and traffic.

Data Extracts

  • Faster Performance: Extracts are snapshots of data optimized for aggregation, leading to quicker load times.
  • Offline Access: Extracts can be used without a continuous connection to the data source.
  • Not Real-time: Changes in the data source are not reflected until the extract is refreshed.

If you liked the tutorial, spread the word and share the link and our website Studyopedia with others.


For Videos, Join Our YouTube Channel: Join Now


Read More:

Tableau - Types
Create a Line Chart in Tableau
Studyopedia Editorial Staff
contact@studyopedia.com

We work to create programming tutorials for all.

No Comments

Post A Comment

Discover more from Studyopedia

Subscribe now to keep reading and get access to the full archive.

Continue reading