Exercise 2 - Tableau
Exercise 2 - Tableau
Please use the screenshots ONLY as a reference. The written instructions have to be
followed AS written.
PLEASE MAKE SURE YOU SUBMIT ALL THE SCREENSHOTS WITH TIMESTAMPS
AT THE BOTTOM RIGHT (WINDOWS USERS) OR ELSE YOU WILL
AUTOMATICALLY QUALIFY FOR A DISCOUNT.
Objective:
To understand how to make charts in Tableau by implementing join, aggregation, sort
and filter techniques in a worksheet.
Step 1: Prerequisite
Before you can begin, your computer needs the Tableau Desktop installed and working.
Tableau is a business intelligence tool used for data visualization. It turns
data into meaningful insights.
1. Click on the link below and select “Get Tableau for free”
https://www.tableau.com/academic/students
2. On the form, enter your school email address for Business E-mail and enter the
name of your school for Organization.
3. Once Tableau is installed, activate it with the product key listed in the associated
document.
Judd Bradbury
Page 1
Tableau Worksheet
Judd Bradbury
Page 2
Tableau Worksheet
Question 2: Review the metrics provided in the data source tab. Total how many tables
are there in the loaded dataset? What is the total number of rows in the orders table?
What is the total number of columns in the Orders table?
Step 5: Relationships
Judd Bradbury
Page 3
Tableau Worksheet
Relationships are an easy, flexible way to combine data from multiple tables for
analysis. You define relationships based on matching fields, so that during analysis,
Tableau brings in the right data from the right tables at the right aggregation—handling
level of detail for you. A data source with relationships acts like a custom data source
for every viz, but you only build it once.
Here, the Orders table is our fact table because it describes our business process. We
want people to order items from our Superstore, and when they do, they are recorded in
the Orders table.
The default which the updated version of Tableau implements is a Relationship. Now
drag the People table next to the Orders table to create a relationship between the two.
This is where we will define the characteristics of our relationship. Make the following
changes by clicking on the line between the two tables and enlarging the Performance
Options.
Judd Bradbury
Page 4
Tableau Worksheet
Tableau recognized that there was probably a relationship between the Region field
from the Orders table and the Region field in the People table. If this had not been the
case, then you would have needed to select the fields from the drop-down that you want
to relate.
Next you will need to select the cardinality for this relationship. Here, there are many
rows with each region in the Orders table but there is only one row per region in the
Region table. This means the cardinality is many-to-one. Choose those options from
the drop-down accordingly.
Similarly, create a relationship between Orders and Returns table by dragging the
Returns table on canvas and making the following changes:
Judd Bradbury
Page 5
Tableau Worksheet
Question 3: Paste two screenshots of both of the relationships 1) between the Orders
and the People and 2) the Orders and Returns.
Judd Bradbury
Page 6
Tableau Worksheet
Step 7: Aggregation
Judd Bradbury
Page 7
Tableau Worksheet
Hover the mouse over the green pill, click on the small white triangle and select
“Average” from the Profit Measure.
Judd Bradbury
Page 8
Tableau Worksheet
Question 6: Paste the screenshot of your screen showing the entire view.
Question 7: What changes were observed in the bar graph when aggregation was
changed from sum to average?
Step 8: Filters
2. Drag the “Profit” measure to the Columns shelf. Drag “Sales” from
Measures to the Rows shelf.
Judd Bradbury
Page 9
Tableau Worksheet
Judd Bradbury
Page 10
Tableau Worksheet
5. Click on “Years”. In the next pop-menu select the oldest year through the
current year. Finally, click on the apply button then hit Ok.
6. Hover the mouse on the newly created filter, click on the white triangle and
select “Show Filter”.
7. Hover mouse over the engaged filter on the right side. Click on small white
triangle and de-select “Show All Value” from Customize.
Judd Bradbury
Page 11
Tableau Worksheet
Question 8: Paste the screenshot of your screen showing the “Entire View”
Question 9: Which sub-category has sales greater than $140,000? Which sub-category
has Profit greater than $10,000?
Step 9: Histogram
1. Create a new worksheet and rename it to “FirstName – Histogram”.
2. Drag “Quantity” from Measures to the Rows shelf.
3. Click on the “Show Me” tab on top right and select “Histogram”. Notice
what happens to the visualization.
Judd Bradbury
Page 12
Tableau Worksheet
5. In the pop-menu click on the Tick Marks tab and select Fixed and change
the major tick interval to the setting “0 to 3”.
Judd Bradbury
Page 13
Tableau Worksheet
7. In the pop-up menu, set the size of bins to 3, then click on OK.
Judd Bradbury
Page 14
Tableau Worksheet
Question 10: Paste the screenshot of your current screen showing the “Entire View”.
Judd Bradbury
Page 15
Tableau Worksheet
Formating: The format of your table cells and labels may not be what you expected.
When you drag SUM(Profit) to the color encoding it changes the cells to the correct
color of profit for that cell. Then when we drag the same SUM(Profit) measure to the
Text encoding, Tableau says ok you want the text in the cells(and colored). Change the
“Marks” card from “Automatic” to “Square”. This means I wantr color squares with text
values in them.
Judd Bradbury
Page 16
Tableau Worksheet
Question 12: Which sub-categories are making the most profit? Which sub-categories
are making the least profit? List 3 sub-categories with their corresponding values for
each with your answers.
3. Hover your mouse over “Sub-Category” then click on the small white
triangle and select Sort.
Judd Bradbury
Page 17
Tableau Worksheet
5. Change the sort order to Descending and select Profit for the field name.
Judd Bradbury
Page 18
Tableau Worksheet
Judd Bradbury
Page 19
Tableau Worksheet
Question 13: Paste the screenshot of your screen showing the “Entire View”.
Question 14: Which sub-categories have the highest sales? Which sub-categories have
the highest profits? List 3 sub-categories for each with their respective values.
Hint: Hover mouse over individual bars for profit and sales values.
From the File menu at the top left, save your file as “Firstname_Lastname”. Make sure
to save the file as .TWBX. Submissions using any other extension will receive heavy
discounting.
Instructions:
Judd Bradbury
Page 20