3 Analysis
3 Analysis
Exercises - Analyses
With Tableau you can create views manually as well as automatically. You can use Show Me to create
views automatically. When you drag fields to the view, the data is displayed using marks. Each mark
represents the intersection of all the dimensions in the view. You can also drill down or up within a
hierarchy and apply filters in Tableau Desktop.
Business Scenario
A Retail Company Manager wants to analyze the sales data over different periods of time to see, when
the company crossed profit margin in a year. In order to implement this scenario he can perform drilling
over time hierarchy and can apply filter to sales data as per the profit margin. To get started, he first
needs to create a view:
Overview
In this exercise you will:
Detailed Instructions
Basic View
1. Open Tableau 8.2 by double clicking the Tableau 8.2 shortcut icon on your desktop.
2. On the Home page, under Saved data sources, click Sample-Superstore-English (Extract).
3. In the Data pane, under Dimensions, locate and drag Order Date to the Columns shelf.
4. In the Data pane, under Measures, locate and drag Sales to the Rows shelf.
Nested View
5. To drill down to quarter level, click + icon preceding Year (Order Date) field in the Columns
shelf.
Nested view is displayed as shown in the following image:
Dual Axes
6. In the Data pane, under Measures, locate and drag Profit to the right side of the view until a
vertical dotted line appears, and then release the cursor to create dual axes.
After adding measure as dual axes, your view should resemble the following image:
Combination Charts
9. In the Rows shelf, click the SUM(Profit) drop down and select Remove.
10. In the Data pane, under Dimensions, drag Customer Segment to the Rows shelf.
You can now see multiple small graphs as shown in the image below:
Filter Data
Overview
In this exercise you will:
Use Show Me to build a scatter plot that displays sales versus profit graph for each State and
Department.
Color encode the view by State.
Note: You will perform this exercise using Tableau’s sample data source, Sample-Superstore-English
(Extract)
Detailed Instructions
Basic View
1. On the Home page, under Saved data sources, click Sample-Superstore-English (Extract).
2. In the Data pane, under Dimensions, holding the CTRL key, select Department, State, Profit and
Sales measures.
Note: State dimension is available under Mapping Items.
3. Click Show Me on the toolbar.
4. Select the Scatter Plots view as shown in the image below:
Note: Show Me automatically creates a scatter plot with the fields you selected.
5. In the Data pane, under Dimensions, locate and drag State to the Color Marks card.
Overview
In this exercise, you will edit the mark properties to enhance the visualization. You will perform the
following:
Create a scatter plot view that displays Profit versus Order Quantity graph for each order date.
Color encode this view by Region.
Apply a filter on Region so that only the data for Central, East and West is displayed.
Make the mark size corresponding to the priority of order
Change the mark shape from default to X
Change the mark color for West region to dark grey
Make the transparency of graphs 80 percent
Highlight marks for East region
Note: You will perform this exercise using Tableau’s sample data source, Sample - Superstore - English
(Extract).
Detailed Instructions
Create view
1. On the Home page, under Saved data sources, click Sample-Superstore-English (Extract) data
source.
2. In the Data pane, under Measures, locate and drag Profit to the Columns shelf.
3. In the Data pane, under Measures, locate and drag Order Quantity to the Rows shelf.
4. In the Data pane, under Dimensions, locate and drag Order Date to the Marks card as shown in
the image below:
5. In the Data pane, under Dimensions, locate and drag Region to the Color in the Marks card.
Apply Filter
1. In the Marks card, click the Region drop-down, and select Filter.
2. In the Filter [Region] window, on the General tab, keep Select from list radio button selected.
3. Keep Central, East and West check box selected and deselect South and International check
box.
4. In the Filter [Region] window, click OK.
Compare your view with the following image:
5. In the Data pane, under Dimensions, locate and drag Order Priority to the Size in the Marks
card.
Highlight Marks