Tableau 10 Tutz
Tableau 10 Tutz
TUTORIAL
The dataset has a total of 100,240 records and 87 attributes distributed among 12 tables.
This tutorial shows you how to:
1. Connect directly to the WCOB_RSC dataset residing on the TERADATA system.
2. Prepare the dataset before working on it.
3. Create three visualizations based on an investigation of transaction amounts.
NOTE: This tutorial assumes you have been granted access to the University of Arkansas
VMWare platform. Requesting access can be done from the Enterprise Systems website at
the University of Arkansas (https://walton.uark.edu/enterprise/). The data used should not be
downloaded to your personal drives. All files should remain on the Remote Desktop S: drive
provided by the University of Arkansas. This is due to our agreement with the data providers.
Questions can be directed to Ron Freeze at [email protected].
http://onlinehelp.tableau.com/current/guides/get-started-tutorial/en-us/get-started-tutorial- home.html
ESTIMATED COMPLETION TIME: 20-40 minutes
Updated by Matias Delay – Sept 2019 Created by Ron Freeze – June 2018
WCOB_SAMS_INTEGRATED Data Connection
The Story
Suppose you were recently hired as an analyst in the merchandising department of the most
important toy company in the United States. Your boss assigned you a unique product:
Rubbery Squeezy Chickens. Your objective is to find three different insights for this specific
product.
Initially, you are interested in visualizing the total quantity sold and sale amount by the
different manufacturing plants where the rubbery squeezy chickens were produced. Next,
you want to take the insights gained in the first visualization and narrow down your analysis
to the top manufacturing plant in terms of revenue generation. You will then see if there is
any seasonality pattern for this specific manufacturing plant by looking at monthly sales.
Finally, you want to look at days of the week insights. Is there any particular day that sold the
most on average? Is there any particular day of the week that generated the highest revenue
on average?
In order to reach the desired visualizations, the following are the steps we will follow:
1. CONNECTING TO THE DATA (here)
• Connect to Teradata
• Connect to WCOB_RSC database
• Connect to the three tables: DATE_DIMENSION, SALES_FACT and
PLANT_DIMENSION.
Updated by Matias Delay – Sept 2019 Created by Ron Freeze – June 2018
WCOB_SAMS_INTEGRATED Data Connection
Updated by Matias Delay – Sept 2019 Created by Ron Freeze – June 2018
WCOB_SAMS_INTEGRATED Data Connection
Connect to Teradata
Under Connect > To a Server, select
More. A new window will open, click on
Teradata as shown in the figure
alongside.
A window will ask you to enter the
following information:
Server: 130.184.26.161
Username: given to you by instructor
Password: given to you by instructor
Connect to WCOB_RSC
Now we have to access the
WCOB_RSC database through the
panel to the left:
1. Type “WCOB_RSC”, click on the
search icon. A new “WCOB_RSC”
will appear below, click on it.
2. Once on the database, click
on the search icon.
3. Finally, tables from the
database should appear on
the panel to the left.
Your window should look like the picture
on the right. You are connected to
WCOB_RSC database (circled in red).
The left panel shows the tables (circled
in green) in the database.
At the bottom left corner, there are two
tabs named Data Source and Sheet 1.
Click on Sheet 1 and a window similar
to the picture below will appear.
Sheet 1 does not currently have data.
This is indicated by an exclamation point
next to the database name (circled in red
in the figure on the next page).
Click on the Data Source tab on the
Updated by Matias Delay – Sept 2019 Created by Ron Freeze – June 2018
WCOB_SAMS_INTEGRATED Data Connection
As a recap:
After you connect to your data, Tableau does the following:
• Opens a new worksheet. This is a blank slate where you create your first view.
• Automatically assigns data types (such as date, number, string, etc.) and roles
(dimension or measures) to your data. (We'll talk more about these terms later.)
• Adds columns from your data source to the Data pane on the left-hand side. Columns
are added as fields.
If you want to review details of your data, you can select the Data Source tab in the bottom
left-hand corner. Here, you can view the first 1,000 rows of your data. What happens in
Tableau stays in Tableau; the data is safe.
When you connect to your own data, you might need to do some prep work before connecting
to it in Tableau. This is because Tableau makes assumptions about your data so that it can
display it properly. With the Date_Dimension table added, we have the first five variables
needed for our analysis: Date Description, Month of Year, Year Number, Quarter of Year,
and Day of Week.
Note: If you navigated to Data Source to check out the details, just click on the tab for Sheet
1 to get back to where you started.
Updated by Matias Delay – Sept 2019 Created by Ron Freeze – June 2018
WCOB_SAMS_INTEGRATED Data Connection
Updated by Matias Delay – Sept 2019 Created by Ron Freeze – June 2018
WCOB_SAMS_INTEGRATED Data Connection
Updated by Matias Delay – Sept 2019 Created by Ron Freeze – June 2018
WCOB_SAMS_INTEGRATED Data Connection
Filter Fields
Since our analysis is based on the year 2017 only, we can already filter our data to that
year:
On the picture above, at the top right corner, you can find a Filters subtitle: Commented [RF1]: Need to correct the circled items.
Updated by Matias Delay – Sept 2019 Created by Ron Freeze – June 2018
WCOB_SAMS_INTEGRATED Data Connection
Updated by Matias Delay – Sept 2019 Created by Ron Freeze – June 2018
WCOB_SAMS_INTEGRATED Data Connection
Our main objective is half-way completed. Now we have to make it readable for our boss
and visual friendly for presentation purposes.
We will first change our y-axis to
Dollars:
7. Click on the left Value panel
(y-axis). When highlighted in
blue, right-click on it. A new
‘Axis’ pane will appear where
your attributes were located.
8. Select Numbers. Then click
on Currency (Custom) and
make sure the following
parameters are selected:
a. Decimal places: 0
b. Display Units:
Thousands (K)
c. Prefix/Suffix: $
d. Box checked for: Include thousands separators.
Since all plants hold ‘Manufacturing Plant’ next to the city were they are located, we will
edit the aliases of the columns and remove them from their names:
Updated by Matias Delay – Sept 2019 Created by Ron Freeze – June 2018
WCOB_SAMS_INTEGRATED Data Connection
Updated by Matias Delay – Sept 2019 Created by Ron Freeze – June 2018
WCOB_SAMS_INTEGRATED Data Connection
Updated by Matias Delay – Sept 2019 Created by Ron Freeze – June 2018
WCOB_SAMS_INTEGRATED Data Connection
Now, we want to show the area below our line and the respective
values for each month:
6. Click on Show Me (top right corner) and select Area Chart
(circled in red).
7. Click on the Label box like you did previously and click on
Show mark label (adjust the font accordingly).
8. Adjust the y-axis to Dollars ($) like we did above.
Hint: In order to put Dollar signs
to your labels, drag and drop
Sale Amount to the Label box
and alter the text by inserting a
Dollar sign ($) before the sale
amount.
9. Click on the Color box in the Marks palette and under Effects, click on Border and
select the black color.
Finally, show the average sale amount for the year in Newton Manufacturing plant:
10. On the left panel, at the top left corner, click on Analytics (next to Data).
11. Drag Average Line to the trend line, a window
will appear.
12. Drop Average Line on the intersection between
the Table column and the Sum(Sale Amount)
row (circled in red).
Format the entire visualization like we did with the previous one and try to arrive to
something like the following:
Updated by Matias Delay – Sept 2019 Created by Ron Freeze – June 2018
WCOB_SAMS_INTEGRATED Data Connection
Updated by Matias Delay – Sept 2019 Created by Ron Freeze – June 2018
WCOB_SAMS_INTEGRATED Data Connection
You notice that we changed the title to only quantity sold and the visualization only shows
quantity sold. We did this in purpose:
11. Right-click on the worksheet tab and select Duplicate.
You just duplicated your worksheet. On the duplicated one do
the following:
12. Change the title to: 2017 Average sale amount per
day of the week
13. Under Marks Palette, replace SUM(Quantity Sold)
measures for Sale Amount.
14. Modify the labels and make sure to show the Dollar sign ($) values.
Your visualization should look like the following:
Updated by Matias Delay – Sept 2019 Created by Ron Freeze – June 2018
WCOB_SAMS_INTEGRATED Data Connection
Now you have two worksheets where one displays average quantity sold per day of the
week and the other average sale amount per day of the week. What we want to do now is
display both in the same visualization:
15. Next to the last worksheet tab created, click on
Create Dashboard (circled in red).
16. On the new Dashboard, on the left panel under Sheets, drag the two worksheets
(one after the other) and drop them in the blank space.
Your window should look like this:
Updated by Matias Delay – Sept 2019 Created by Ron Freeze – June 2018
WCOB_SAMS_INTEGRATED Data Connection
Updated by Matias Delay – Sept 2019 Created by Ron Freeze – June 2018
WCOB_SAMS_INTEGRATED Data Connection
Data Dictionary
Batch_Product_Fact Table
Updated by Matias Delay – Sept 2019 Created by Ron Freeze – June 2018
WCOB_SAMS_INTEGRATED Data Connection
Product_Fact Table
Month_Dimension
Updated by Matias Delay – Sept 2019 Created by Ron Freeze – June 2018
WCOB_SAMS_INTEGRATED Data Connection
Inventory_Fact Table
Sales_Fact Table
Date_Dimension Table
Updated by Matias Delay – Sept 2019 Created by Ron Freeze – June 2018
WCOB_SAMS_INTEGRATED Data Connection
Product_Dimension Table
Customer_Dimension Table
Updated by Matias Delay – Sept 2019 Created by Ron Freeze – June 2018
WCOB_SAMS_INTEGRATED Data Connection
Department_Dimension Table
Movement_Dimension Table
Shift_Dimension Table
Updated by Matias Delay – Sept 2019 Created by Ron Freeze – June 2018
WCOB_SAMS_INTEGRATED Data Connection
Plant_Dimension Table
Updated by Matias Delay – Sept 2019 Created by Ron Freeze – June 2018