Welcome to Module 3 of Introduction to Tableau! In the previous module, you learned about the Tableau workspace, Dimensions, Measures, Rows, Columns, and the Marks Card. Now, you will learn how to bring information into Tableau so that you can start analysing it. Imagine you own a supermarket in Ibadan. You have an Excel file containing the names of products, their prices, quantities sold, and total sales. You want to use Tableau to understand which products customers buy the most. Before Tableau can create charts from this information, you need to connect it to your data. Let's learn how to do that!
A data source is where information comes from.
Think about your school. Your teacher may keep students' names and examination scores in an Excel spreadsheet. That spreadsheet is a data source.
Tableau connects to data sources so that you can study the information and create visualisations.
Tableau supports different connections depending on the product, version, and available drivers.
Microsoft Excel is one of the easiest ways for beginners to practise using Tableau.
Imagine you have a spreadsheet containing the sales records of a supermarket.
| Product | Category | Quantity Sold | Price |
|---|---|---|---|
| Rice | Food | 20 | 75000 |
| Bread | Food | 15 | 1500 |
| Milk | Drinks | 10 | 2500 |
| Noodles | Food | 30 | 1200 |
| Soft Drink | Drinks | 25 | 1000 |
You have now connected an Excel spreadsheet to Tableau!
A CSV file is another common way of storing information.
CSV means Comma-Separated Values.
It is a simple file format that stores information as text, with commas separating values in each row.
Student,Class,Score Ada,JSS 2,85 John,JSS 2,70 Mary,JSS 3,95 David,JSS 3,60
Each line represents a record, while the commas separate the different fields.
Once the connection is successful, you can use the information to create charts and dashboards.
When you connect a dataset to Tableau, you will see information arranged in rows and columns.
Let's understand what these terms mean.
A data table is a collection of related information arranged in rows and columns.
For example, a school may have a table containing students' names, classes, ages, and examination scores.
A row contains information about one record or item.
In a student database, one row may contain all the information about Ada.
A column contains one type of information about different records.
For example, a Student Name column contains the names of all students.
A field is an individual piece of information or attribute in a dataset. In a simple spreadsheet, a field usually corresponds to a column.
Examples include:
| Student Name | Age | Class | Score |
|---|---|---|---|
| Ada | 13 | JSS 2 | 85 |
| John | 14 | JSS 2 | 70 |
| Mary | 13 | JSS 3 | 95 |
In this table:
Not all information is the same. Some information contains words, while other information contains numbers or dates.
Tableau uses data types to understand what kind of information is stored in each field.
String data contains text or characters.
Examples: Student Name, Product Name, City, and Department.
Whole numbers are numbers without decimal points.
Examples: 10, 25, 100, and 500.
Decimal numbers contain decimal points.
Examples: 12.5, 45.75, and 99.99.
Date fields contain calendar dates.
Example: 26 November 2026.
This data type contains both a date and a time.
Example: 26 November 2026, 10:30 AM.
Boolean data contains two possible values: True or False.
Example: Is the student registered? True or False.
Imagine Tableau receives a field containing examination scores, but the scores are stored as text instead of numbers.
Tableau may not be able to calculate the average score correctly until the field is converted to a suitable numerical data type.
Using the correct data type helps Tableau perform calculations and display information properly.
Before analysing information, you should check that the data is organised and accurate.
This process is called data cleaning.
Imagine you receive a supermarket sales spreadsheet containing mistakes. Some product names are spelt differently, some prices are missing, and some records appear twice.
If you analyse the information without checking it, your results may be incorrect.
A missing value occurs when information is not provided in a field.
Example: A sales record has a product name and quantity but no price.
A duplicate occurs when the same record appears more than once when it should only appear once.
Example: The same customer transaction is accidentally entered twice.
Sometimes the same item is written in different ways.
Example:
These values may refer to the same city but could be treated as separate categories in some analyses.
A numerical value may accidentally be stored as text.
Example: The number 5000 is stored as a text field instead of a numerical field.
Sometimes information contains unnecessary spaces.
Example: "Rice" and " Rice " may appear as different values in a dataset.
Important: Tableau provides tools for organising and preparing data, but more complicated cleaning may be easier in Excel, Tableau Prep, or another data preparation tool.
Sometimes information is stored in different tables.
For example, a supermarket may have one table containing product information and another table containing sales transactions.
Tableau can combine related tables so that you can analyse information from different sources.
Products Table
| Product ID | Product Name |
|---|---|
| 101 | Rice |
| 102 | Bread |
| 103 | Milk |
Sales Table
| Product ID | Quantity Sold |
|---|---|
| 101 | 20 |
| 102 | 15 |
| 103 | 10 |
Both tables have a Product ID field.
Tableau can use this shared field to understand which sales records belong to which products.
This connection is called a relationship.
Relationships help Tableau work with information stored in separate tables without requiring you to manually combine everything into one table first.
Now it is time to practise!
Your task is to connect a student examination dataset to Tableau.
Create a spreadsheet in Excel with the following information:
| Student | Class | Age | Mathematics | English |
|---|---|---|---|---|
| Ada | JSS 2 | 13 | 85 | 78 |
| John | JSS 2 | 14 | 70 | 82 |
| Mary | JSS 3 | 13 | 95 | 90 |
| David | JSS 3 | 14 | 60 | 68 |
Save the file with this name:
Student_Examination_Records.xlsx
Identify the fields that contain text and the fields that contain numbers.
Save your Tableau workbook with the name:
Student_Performance_Practice
Congratulations! You have completed your first data connection exercise.
Answer these questions to test your understanding.
In this module, you learned how to connect Tableau to different data sources, including Excel and CSV files.
You also learned how to identify rows, columns, and fields, understand different data types, and prepare information for analysis.
Finally, you discovered how Tableau can work with related tables to analyse information from different sources.
Remember: Good analysis starts with good data. Always check your information before creating charts and dashboards.
In the next module, you will learn how to create bar charts, line charts, pie charts, tree maps, and scatter plots using Tableau. You will also learn how to sort and filter information to make your reports more useful.