Beruflich Dokumente
Kultur Dokumente
Power-User Training
2
Tableau Fundamentals
11/6/2019
Workbook Name Toolbars View Show Me
Data Window
View Cards Workspace Controls
4
Tableau Fundamentals
Status Bar Sheet Tabs 11/6/2019
Connecting to Data
Fundamentals
Connect to Data
1. Go to Home Screen
2. Choose “Connect to Data”
6
Tableau Fundamentals
11/6/2019
Fundamentals
Connect to Data
Note: See all of the options for data sources.
We will primarily be using “Tableau Server” for our
data sources for business reporting. These are all
data connections that have been developed in our
Data Lake – (MES/CIMNET, Kronos, NCN, etc.)
7
Tableau Fundamentals
11/6/2019
Fundamentals
Connect to Data
6. Once the connection loads, you’ll see all the available tabs on the left-hand side.
7. Drag “Orders” over to the box where it says “Drag Sheets Here”.
8. Click on the orange “Go to Worksheet” button.
Click
8
Tableau Fundamentals
11/6/2019
Fundamentals
Connect to Data
Note: For linking data in a single source drag a second sheet into the data
connection page.
Specify a joining condition (more detail in the advanced training)
And specify which fields are in common if Tableau has not already done so.
9
Tableau Fundamentals
11/6/2019
Fundamentals
Connect to Data
9. Once you click on the button, you will be taken to a blank worksheet. This is the
view where you can start to develop charts, tables, and other visuals.
10
Tableau Fundamentals
11/6/2019
Fundamentals
Connect to Data
10. Dimensions & Measures:
a. Dimensions: Dates, Text, Geographic Data, etc.
b. Measures: Numerical Data
11
Tableau Fundamentals
11/6/2019
Fundamentals
Connect to Data
Tableau automatically assigns values as
dimensions or measures based on what it
thinks is the best fit.
You can convert a dimension or measure
by right clicking and selecting Convert to
Dimensions
12
Tableau Fundamentals
11/6/2019
Fundamentals
Connect to Data
12. Drag “Sales” to columns. Note the
format of the numerical values on the
axis.
13. If you don’t like the default formatting
that Tableau provides, you can set
default formatting that will drive
formatting for a particular measure on
the worksheet.
• Right click on “Sales” Choose
“Default Properties” Select
“Number Format”
• You can choose a standard
currency option, or create a
custom currency option by going to
Currency (Custom)
• Lets select 0 for decimal places &
units at “None”
13
Tableau Fundamentals
11/6/2019
Fundamentals
Connect to Data
14. Lets clear this out by clicking the back arrow or the button that gives you the option.
15. Drag Customer Segment to Columns & Discount to Rows
• Discount doesn’t really make sense as count…so lets try something.
• Go to “Default Properties” & “Number Formatting” and change to percentage.
• You can change the default calculation from “SUM” to “AVG”.
– Right Click on the Discount field in the Columns card
– Hover over Measure (Sum) to see the list of calculation options
– Click on “Average”
14
Tableau Fundamentals
11/6/2019
Fundamentals
Connect to Data - .tds File
16. All of the changes you are making by adding new calculated fields, duplicating
fields, or changing formatting won’t be saved in your source excel or other file.
17. But! You can save these changes in a .tds file. This allows Tableau to quickly
save these formatting and other options in a middle layer. It will automatically save
the changes between Tableau and the data connection.
1. First, right click on the source on the left hand side.
2. Select “Add to Saved Data Sources…” towards the bottom. Either save to
default location or to a location of your choice.
3. Now, if you close all the way out, you can choose this .tds file and everything
we’ve done so far is saved and maintained.
15
Tableau Fundamentals
11/6/2019
Fundamentals
Connect to Data – Tableau File Types
1. .tds
• Tableau Data Source files are shortcuts for quickly connecting to data souces that you
use often. Data doesn’t actually exist in this type of file, but the .tds acts as a pointer to
the data and maintains any special formatting and manipulations to the data that you want
to be able to retain for multiple users or reports. (retains format, calculated fields, groups,
sets, field names/aliases, hierarchies)
2. .twb
• Workbooks hold one or more worksheets and dashboards, and always refer to data
outside of the workbook itself.
3. .tde
• Tableau data extract files have the .tde file extension and are marked with the extract
icon. Extract files are a local copy of a subset or entire data source that you can use to
share data, work offline, and improve database performance
4. .twbx
• Tableau Packaged Workbook (contains the data extract and everything you need into the
file…allows you to share with people who don’t have access to the source. Embeds any
files with it).
16
Tableau Fundamentals
11/6/2019
Understanding Changes to Data
If you are using live data connections:
Note: If you are using a Tableau extract your data will not change until you
Refresh
17
Tableau Fundamentals
11/6/2019
Creating Basic Visualizations
Creating Basic Visualizations
Data Window Components
Component Description
Discrete categories of data. Sometimes referred to as data
Dimensions slicers. Dimensions create axis headers into a view.
19
Tableau Fundamentals
11/6/2019
Creating Basic Visualizations
View Window Components
Component Description
Drag dimension and measure fields to these shelves to
Columns & Rows define how you want the data shown in the view.
Show data changes over time or across discrete
Pages dimensions.
Drag fields to the Filters shelf to limit the number of
Filters members shown. Exposed filters in a dashboard allow
end-user control of the visualization.
Data as shown in the visualization. Bars, circles, pies,
Marks text, and lines are examples of Marks.
Create a Visualization
Two ways to create a basic visualization:
To Do this:
Select dimension and measure fields you want in the view, and
Get a recommendation
choose the Show Me option. Show Me suggests the best
for a view: visualization type for your selected data.
Drag fields into Columns, Rows, and the Marks cards. You
Build your own: can also drag fields into the views.
21
Tableau Fundamentals
11/6/2019
Creating Basic Visualizations
Change Colors, Sizes, or Mark Types
You can use the Marks card to change the attributes of the marks in your view by
selecting the mark you want to change and doing one of the following:
To Do this:
On the Marks card, select the drop-down menu and choose the
Change the Mark Type mark type.
Change Colors Choose Color to access the color menu options.
Adjust Mark Size Choose Size and use the slider to adjust the size.
Choose Label to access the label menu options. Options
Change Label available are dependent on selections you make.
From the Data window, drag a dimension field to Detail to
separate the marks in a view according to members of a
Add Details dimension. Using details brings more data into the view without
changing the table structure.
Choose Tooltip, and in the Edit Tooltip dialog box, edit the
Edit Tooltip details of the tooltip.
On the Marks card, choose Pie from the drop-down menu, and
Assign Values to Pie Chart drag a measure to Angle.
22
On the Marks card, choose either Line or PolygonTableau
from Fundamentals
the
Control the Path of a Line drop-down menu, and drag a dimension to Path.
11/6/2019
Creating Basic Visualizations
Practice: Exploring Tableau and the Data
Create a view according to the following specifications:
1. Shows Sales in a bar chart by Department & Category
2. Shows Profit using Color
23
Tableau Fundamentals
11/6/2019
Creating Basic Visualizations
Practice: Exploring Tableau and the Data
To create this view, drag the following elements from the Data window to the
specified locations:
1. (Measures) Sales to Columns
2. (Dimensions) Department to Rows
3. (Dimensions) Category to Rows – place to the RIGHT of department
24
Tableau Fundamentals
11/6/2019
Simplifying and Sorting your Data
Simplifying and Sorting your Data
Types of Sorts
Computed Sorts
Sort Description
The default sort order determines how a field will be sorted when it’s first
added to a view. You can set the default sort order to either ascending or
Default descending order, as well as control whether it is sorted alphabetically, by
data source order, or even by a specified manual sort.
28
Tableau Fundamentals
11/6/2019
Simplifying and Sorting your Data
Practice: Sorting
Create a view according to the following specifications (Sorting_Starter.twbx):
View Two
1. Sort by Profit in descending order (with Profit on Color Mark).
29
Tableau Fundamentals
11/6/2019
Simplifying and Sorting your Data
Data Filtering
Using filters narrows the data shown in a view to focus on relevant information.
Filter options vary by field type (Dimension, Measure, Date Dimension). You can
use quick filters for any dimension or measure to allow end-user interactivity and/or
can create custom filters on dimensions or measures.
Filter on a Dimension
1. Dimension Filters have four options – separated by tabs in the dialog box:
• General, Wildcard, Condition, and Top
2. Multiple filters can be chosen for the same dimension and are used cumulatively
by Tableau (the tool uses “AND” logic to add filters).
• i.e. For Region, if you choose “West” on the General tab and also choose
“Top 10” on the Top tab, you will only see the Top 10 data for the “West”
region.
Filter on a Measure
1. Measure Filters have four options – separated by icons in the dialog box:
• Range of Values, At Least, At Most, or Special 30
Tableau Fundamentals
11/6/2019
2. Only one filter option can be selected for a Measure.
Simplifying and Sorting your Data
Data Filtering – Quick Filter Options
Quick Filter Menu Single Value (List) Single Value
(Dropdown)
31
Tableau Fundamentals
11/6/2019
Simplifying and Sorting your Data
Data Filtering – Customizing Quick Filter
Multiple Values (Custom
Show “All” Value List) Copy and paste values
Show Search Button from Excel and drop it into
Shows or Hides (All) this filter
Shows or Hides Search select option on filters
option
Show Include/Exclude
Shows or Hides Include/
Exclude in Filter Menu
Show More/Fewer
Show Filter Types Buttons
Shows or Hides Options to Shows or Hides
Select a Different Filter More/Fewer icon.
Type
32
Tableau Fundamentals
11/6/2019
Simplifying and Sorting your Data
Data Filtering – Marks Card
33
Tableau Fundamentals
11/6/2019
Simplifying and Sorting your Data
Practice: Filtering
Create a view according to the following specifications (Filtering_Starter.twbx):
1. Has a quick filter for Region, displayed as a single value list, titled “Select a
Region” with the option to choose “All” disabled.
2. Has a quick filter on Sum of Sales, formatted as a slider, and titled “Adjust View
by Sales”.
34
Tableau Fundamentals
11/6/2019
Creating Basic Visualizations
Data Filtering
Note:
When you want to exclude certain
values - Use the Exclude checkbox to
keep your data dynamic.
For Example, in the image shown,
when 2014 data comes in, your data
set will show 2012, 2013, and 2014.
35
Tableau Fundamentals
11/6/2019
Creating Basic Visualizations
Data Filtering
Note:
When using other filter items, select
the Use all radio button so none of
your data is excluded.
36
Tableau Fundamentals
11/6/2019
Organizing Your Data
Organizing Your Data
Using Groups
A group is a set of dimension members combined into higher level categories.
Groups are useful for simplifying the display data when working with large numbers
of dimension members.
38
Tableau Fundamentals
11/6/2019
Organizing Your Data
Using Groups
Option 1. Creating a Group from the View
1. CTRL+click to select multiple dimension labels in the view (table, chart, etc.)
2. Click the “Group” (paperclip) icon in the ToolTip after all are selected
Notice that a new group appears in the Dimensions list on the left-hand side
39
Tableau Fundamentals
11/6/2019
Organizing Your Data
Using Groups
Option 2. Create a Group from the Data Window
1. Right-Click on a dimension in the data window on the left-hand side and choose
“Create Group…”:
40
Tableau Fundamentals
11/6/2019
Organizing Your Data
Using Groups
Option 3. Create a Group using Visual Grouping
1. CTRL+click to select multiple dimension marks in the view (i.e. bars in a chart)
2. Click the “Group” (paperclip) icon in the ToolTip after all are selected
This allows you to group items visually on the chart with color coding (as shown
below), without losing their individual dimension labels as was done in Option 1.
41
Tableau Fundamentals
11/6/2019
Organizing Your Data
Creating and Using Hierarchies
Hierarchies are a useful way to quickly group items by order of relationships. Using
Tableau, you can manually generate a hierarchal structure in your data for any
dimension. When you create dashboards using views containing hierarchies, users
can click on a plus “+” sign to drill up and drill down inside of the data charts & table
views on display.
Building Hierarchy Using Drag & Drop
1. On the left-hand side, drag & drop the “child” field onto the parent.
1. The fields go in order of the hierarchy (in this case, Region is the
top group, followed by Sub Region, followed by State).
2. You can change the order by dragging an item up or down in this grouping
3. Once in the data window, you can click on the “+” or “-” sign to show different
levels of the hierarchy:
42
Tableau Fundamentals
11/6/2019
Organizing Your Data
Creating and Using Hierarchies
Building Hierarchies by Using Context
1. On the left-hand side, CTRL+click the fields you want to group using a hierarchy.
2. Right-click on one of these fields and select “Create Hierarchy…”
Note: This method will put the fields in alphabetical order – you can re-order by
dragging and dropping them into place on the Dimensions list.
43
Tableau Fundamentals
11/6/2019
Organizing Your Data
Practice: Creating Groups & Hierarchies
Create a view according to the following specifications using the following starter
(Creating_Groups_and_Hierarchies_Starter.twbx):
1. Has a group named “Desk Supplies” that has the following labels: Envelopes, Pens & Art
Supplies, Scissors, Rulers and Trimmers, Labels, Rubber Bands
2. Has a hierarchy named “Products” with the following dimensions (in this order):
Department, Category (group), Category, Item
• Drill down one level in hierarchy so you can see Category (group) & Category
44
Tableau Fundamentals
11/6/2019
Organizing Your Data
Practice: Creating Groups & Hierarchies
Create a view according to the following specifications using the following starter
(Creating_Visual_Groupings_Starter.twbx):
1. Has a visual group named “Desk Supplies” that has the following labels: Envelopes, Pens
& Art Supplies, Scissors, Rulers and Trimmers, Labels, Rubber Bands
2. Has a visual group names “Machines” with Office Machines, Copiers and Fax, and
Computer Peripherals
3. All others grouped as “Other”
45
Tableau Fundamentals
11/6/2019
Organizing Your Data
Practice: Creating Groups & Hierarchies
Pro Tip:
Select the Include ‘Other’ button to
group all other data elements together
46
Tableau Fundamentals
11/6/2019
Slicing your Data by Date
Slicing your Data by Date
Understanding Discrete & Continuous Dates
Discrete Dates (Shown as Blue)
Definition: Represents dates as units. When you add a discrete date dimension is
added to the view, Tableau organizes the data as discrete parts, independent of
linear time. Use discrete dates to show your data organized by date units, such as
aggregated data for all Novembers over several years.
NOTE: Date fields have automatic hierarchies built in (Year, Quarter, Month, Week,
Day). When you drop in a date field, you can click on the “+” sign to expand until
you get to the aggregation that you like (you can drag & drop to change order or
drag off any values you don’t care about). Or you right-click the date field to choose
a different option.
48
Tableau Fundamentals
11/6/2019
Slicing your Data by Date
Date Type Selection Short-Cut
By right-clicking and dragging a date dimension to the data view, Tableau will pop-
up a window that shows you all options for selecting a date format.
NOTE:
Discrete fields are
shown on the top.
Continuous fields are
shown on the bottom.
49
Tableau Fundamentals
11/6/2019
Slicing your Data by Date
Re-Defining a Fiscal Year
You can change the default properties of a date/time field to display according to
your organization’s fiscal date equivalent.
50
Tableau Fundamentals
11/6/2019
Slicing your Data by Date
Practice: Discrete & Continuous Dates
Create a view according to the following specifications using the following starter
(Using_Discrete_and_Continuous_Dates_Starter.twbx):
Sheet 1
1. Uses bars to show the aggregation of Sales by month.
51
Tableau Fundamentals
11/6/2019
Slicing your Data by Date
Practice: Discrete & Continuous Dates
Create a view according to the following specifications using the following starter
(Using_Discrete_and_Continuous_Dates_Starter.twbx):
Sheet 2
1. Show Order Date by Sales in a continuous line at the month level.
52
Tableau Fundamentals
11/6/2019
Slicing your Data by Date
Practice: Custom Dates
Create a view according to the following specifications using the following starter
(Custom_Dates_Starter.twbx):
53
Tableau Fundamentals
11/6/2019
Slicing your Data by Date
Practice: Using Missing Values to Show Gaps in Data
Omits missing data points from the visualizations
When would you use this:
Example: Showing a graph with daily labor vouchering over a one month
time period. If an operator only works 5 days per week you can hide the days the
operator doesn’t work.
54
Tableau Fundamentals
11/6/2019
Slicing your Data by Date
Practice: Using Missing Values to Show Gaps in Data
Create a view according to the following specifications using the following starter
(Showing_Gaps_in_Data_Starter.twbx):
Use following steps to show date as discrete day, including missing values and
formatting for null values:
1. Drag Sales to rows & drag Date to columns and select as Discrete Day
2. For the DAY(Date) field, choose to show missing values and note the difference.
55
Tableau Fundamentals
11/6/2019
Slicing your Data by Date
Practice: Using Missing Values to Show Gaps in Data
3. With “Show Missing Values” selected, right-click on SUM(Sales) and choose
“Format”.
4. There are different options for visualizing the “Missing Values” that you can select
on the “Marks” dropdown on the “Pane” tab in the formatting view (bottom of view).
Show at Indicator Show at Default
Value
56
Tableau Fundamentals
11/6/2019
Using Multiple Measures in a View
Using Multiple Measures in a View
Comparing Views with Multiple Measures
• Measure Names and Measure Don’t let this happen to you!
Values are Tableau-generated fields
that serve as containers for more
than one measure.
• We use measure names and
measure values when more than one
number needs to share the same
space.
• Measure names – all the labels that
describe the values in the view
(descriptive, labels that you see).
Also a filter, you can open the filter
and add/delete dimensions)
• Measure values – Text property
becomes measure values. Measure
Values is a combination of numbers,
measure names are used to
separate them. 58
Tableau Fundamentals
11/6/2019
Using Multiple Measures in a View
Comparing Views with Multiple Measures
To stack two measures:
1. Drag “Sales” to Rows and “Customer Segment” to Columns
2. Now, drag “Profit” onto the y-axis of the graph –each Measure is shown side by
side.
3. If you want to stack, rather than show side-by-side, drag “Measure Names” off of
Columns and onto the Color Marks card. This stacks the entire value of each
Measure on top of each other.
59
Tableau Fundamentals
11/6/2019
Step 2. Side-by-Side Step 3. Stacked
Using Multiple Measures in a View
Practice: Combined Axis Chart
Create a view according to the following specifications using the following starter
(Combined Axis Chart _Starter.twbx):
60
Tableau Fundamentals
11/6/2019
Using Multiple Measures in a View
Practice: Combined Axis Chart
Create a view according to the following specifications using the following starter
(Combined Axis Chart with Stacked Marks_Starter twbx):
1. A single, stacked bar per country, color coded by metal type, and change colors for
medals so that the chart matches the formatting below:
61
Tableau Fundamentals
11/6/2019
Using Multiple Measures in a View
Combo Charts – Dual Axis
Using a combo chart allows you to show two different measures in the same view.
This view allows you to more easily compare two measures, and quickly spot important
relationships between the two.
1. Show Sales as bars and Profit as a line by month with synchronized axes.
63
Tableau Fundamentals
11/6/2019
Using Multiple Measures in a View
Practice: Dual Axis Chart
Remember to synchronize your axis when creating a dual
axis chart. This will ensure that the fields that you are
looking at in your view are using the same scale.
64
Tableau Fundamentals
11/6/2019
Using Multiple Measures in a View
Comparing Views with Multiple Measures
You can create different types of views using multiple measures. All of these
options are good for comparing measures against each other, but they
result in different views.
65
Tableau Fundamentals
11/6/2019
Showing the Relationship between
Numerical Values
Showing the Relationship between Numerical
Values
Creating Scatter Plots
Scatter plots help users visualize relationships between numeric variables,
especially when displaying data points in a way that calls attention to outliers. These
visualizations use a combination of colors, shapes, and placement to help
distinguish data that are divergent from the rest, and to show how the measures are
related.
67
Tableau Fundamentals
11/6/2019
Showing the Relationship between Numerical
Values
Practice: Scatter Plot
Create a view according to the following specifications using the following starter
(Scatter_Plot_Starter.twbx):
68
Tableau Fundamentals
11/6/2019
Showing the Relationship between Numerical
Values
Using Sets
Sets are custom fields you create based on existing dimensions – you can create
sets based on specific criteria in order to:
1. View or highlight data meeting a specific computed condition
2. Monitor key data points
3. Create combined fields
Create a Subset of the Data
Once a scatter plot is created, you can develop static sets by highlighting multiple
points and choosing the “Create Set” icon in a Tooltip for a point in your selection.
69
Tableau Fundamentals
11/6/2019
Showing the Relationship between Numerical
Values
Using Sets
Create a Set to Use as a Filter
Note: These type of sets are dynamic
1. Right-click on a dimension you want to
create a filtered set & select “Create Set”
2. In the dialog box, you have three options:
70
Tableau Fundamentals
Combined Set
Description
Option
All Members in
Combines all members of both sets
Both Sets
Shared Members Combines only the members from both sets that have common data
points. For example, customers that are the top 50 most profitable
in Both Sets AND who waited longer that 5 days for a shipment.
<Set Name>
Keep all members of the selected set EXCEPT those shared with
Except Shared the unselected set.
Members
71
Tableau Fundamentals
11/6/2019
Showing the Relationship between Numerical
Values
Practice: Creating and Using Sets
Create a view according to the following specifications using the following starter
(Creating_and_Using_Sets_Starter.twbx):
72
Tableau Fundamentals
11/6/2019
Mapping Data Geographically
Mapping Data Geographically
Mapping in Tableau
Tableau has many built in features that make mapping geographically very intuitive
and powerful. Notice when connected to the Orders sheet in the “Superstore Sales
Training” that some fields have a globe icon next to them.
74
Tableau Fundamentals
11/6/2019
Mapping Data Geographically
Mapping in Tableau
Feature Description
Area Code U.S. Area Codes; numbers only. Examples:206, 650, 415
ZIP Code/ Post ZIP Codes and Postcodes for the United States, France, Germany, United 75
Code Kingdom, Canada, Australia, and New Zealand. Tableau Fundamentals
11/6/2019
Mapping Data Geographically
Background Maps & Layers
76
Tableau Fundamentals
11/6/2019
Mapping Data Geographically
Practice: Geographic Mapping
Create a view according to the following specifications using the following starter
(Geographic_Mapping_Starter.twbx):
77
Tableau Fundamentals
11/6/2019
Mapping Data Geographically
Practice: Filled Maps
Create a view according to the following specifications using the following starter
(Filled_Maps_Starter.twbx):
1. Uses filled map to show Order Quantity by color for each Postal Code in
Seattle.
2. Shows streets and highways & uses 40% transparency.
3. Include a quick filter for Postal Code that shows only relevant values, and
allows the user to select one Postal Code at a time
78
Tableau Fundamentals
11/6/2019
View Specific Values
Viewing Specific Values
Creating Heat Maps
Heat maps turn visually crowded text tables into powerful visualizations.
1. Show Me
• Select (1) dimension and (1) or (2)
measures that you want to compare
• Go to “Show Me” card to select Heat
Map
81
Tableau Fundamentals
11/6/2019
Viewing Specific Values
Grand Totals, Sub-Totals, and Changing Aggregation
82
Tableau Fundamentals
11/6/2019
Viewing Specific Values
Practice: Totals and Aggregation – View One
Create a view according to the following specifications using the following starter
(Totals_and_Aggregations_Starter.twbx):
1. Using “Total Sales” sheet, show row and column grand totals AND all subtotals
83
Tableau Fundamentals
11/6/2019
Viewing Specific Values
Practice: Totals and Aggregation – View Two
Create a view according to the following specifications using the following starter
(Totals_and_Aggregations_Starter.twbx):
84
Tableau Fundamentals
11/6/2019
Viewing Specific Values
Practice: Totals and Aggregation – View Three
Create a view according to the following specifications using the following starter
(Totals_and_Aggregations_Starter.twbx):
85
Tableau Fundamentals
11/6/2019
Viewing Specific Values
Highlight Tables
Note: They can be especially useful for calling out high and low patterns
with color.
86
Tableau Fundamentals
11/6/2019
Viewing Specific Values
Practice: Highlight Table
Create a view according to the following specifications using the following starter
(Highlight_Table_Starter.twbx):
87
Tableau Fundamentals
11/6/2019
Customizing your Data
Customizing your Data
Calculation Types
Calculation Description
Custom calculations created using the Calculated
Calculated Fields Field editor. Right click in the data window to find the
Calculated Field editor
Calculations that are applied after the data has been
returned. These calculations are created locally on
Table Calculations the Tableau Server. Some predefined table
calculations are available as Quick Table
Calculations.
Row and Column Predefined calculations available in the analysis
Totals window – subtotals and grand totals.
89
Tableau Fundamentals
11/6/2019
Customizing your Data Pro tip: Use (//) to
leave notes about the
Calculated Field Dialog Box code
Name: Enter name of
calculated field that will
be visible in the
workbook
90
Tableau Fundamentals
11/6/2019
Customizing your Data
Calculated Fields
or
1. Click on the measure you want to
create the calculated field with
2. Select Create Calculated Field.
91
Tableau Fundamentals
11/6/2019
Customizing your Data
Calculation Fields
Types of Calculated Fields
Type Description
Math Operations Addition or subtraction, etc. Example: [Sales] * 2
IF THEN, CASE, IFF, and Boolean. If [Sales] >=
Logic Statements [Quota] Then “Bonus” END
Affects the order of operations in a formula.
Aggregating Data Example: SUM([Profit])/SUM([SALES]).
Use string functions to handle text and time in your
Manipulating Strings data. Example: “First Name” + “ Last Name” = First
Name Last Name
Calculate a difference in dates or add some amount
Data Formulas of time to an existing date field. Example:
DateAdd(‘Month’ ,3,[Order Date])
92
Tableau Fundamentals
11/6/2019
Customizing your Data
Practice: Manipulating Strings & Data Type
Conversions
Create a view according to the following specifications using the following starter
(Manipulating Strings And Data Type Conversions_Starter.twbx):
93
Tableau Fundamentals
11/6/2019
Customizing your Data
Practice: Using Date Calculations
Create a view according to the following specifications using the following starter
(Using_Date_Calculations_Starter.twbx):
1. Create a horizontal bar chart that shows the average Days to Ship (by
creating a calculated field) by Department and Category
94
Tableau Fundamentals
11/6/2019
Customizing your Data
Calculation Fields
Aggregation
Using aggregate calculations in Tableau are important to make sure you are
combining and visualizing data in the proper way.
Example: What is the total Profit Margin based on the Sales & Profits below?
1. Average(Profit Margin)
36.49%
2. Sum(Profit Margin) 182.49%
95
Tableau Fundamentals
11/6/2019
Customizing your Data
Practice: Calculations & Aggregations
Create a view according to the following specifications using the following starter
(Calculations and Aggregations Starter.twbx):
1. Create a calculated field using the following formula called Profit Ratio
• [Profit]/[Sales]
2. Drop Sales, Profit, and Profit Ratio onto the chart and drag Department and
Category onto the rows – format each field to match this view.
96
Tableau Fundamentals
11/6/2019
Customizing your Data
Practice: Calculations & Aggregations
3. Edit the calculated field Profit Margin using SUM as shown below:
• SUM([Profit])/SUM([Sales])
4. Notice the difference between this result and the previous result!
97
Tableau Fundamentals
11/6/2019
Customizing your Data
Practice: Using Logic Statements to Create a KPI
Create a view according to the following specifications using the following starter
(Using_a_Logic_Statement_to_Create_a_KPI_Starter.twbx):
1. Create a calculated field called Profit Ratio KPI that uses an IF statement to
categorize Profit Ratios and assigns different values based on this criteria:
• “Great” Profit Ratio greater than or equal to .50
• “Good” Profit Ratio grater than or equal to .25, but less than .50
• “Needs Improvement” Profit Ratio less than .25
2. Utilize shapes to match formatting in example on next page, splitting into
categories based on Region and SubRegion by Product Category
98
Tableau Fundamentals
11/6/2019
Customizing your Data
Practice: Using Logic Statements to Create a KPI
99
Tableau Fundamentals
11/6/2019
Customizing your Data
Practice: Using Logic Statements to Re-Group Dimension Members
Create a view according to the following specifications using the following starter
(Using_Logic_Statements_to_Regroup_Dimension_Members_Starter.twbx):
100
Tableau Fundamentals
11/6/2019
Analyzing Data with Quick Table
Calculations
Analyzing Data with Quick Table Calculations
Using Quick Table Calculations
Quick table calculations are predefined computations that can be run against the data in your
view. They use a default direction for operations (i.e. Table (across)) – they also use a
default comparison type, such as the measure compared to the “previous” cell. You can
modify these “default” conditions once you become more familiar with Quick Table
Calculations.
Quick Table Calculation Description
Running Total Adds total across the table
Percent Difference Calculates the percent difference from previous column, across a table
Percent Total Calculates the values percent of the total sum in a table
Rank Calculates the integer rank of the value across the table
Percentile Calculates the statistical percentile of the value across the table
Calculates the average value based on a range around the current value. Used to smooth short
Moving Average term fluctuations
YTD Total Calculates the running total from the beginning of the year across the table.
Compound Growth
Calculates the current value as a percentage from the first value
Rate
Calculates a percentage for the current value compared to the same period in the previous
Year over year growth year.
102
Tableau Fundamentals
Calculates a percentage change from the same time period in the previous year and then
YTD Growth calculates a running total over a year.
11/6/2019
Analyzing Data with Quick Table Calculations
Using Quick Table Calculations
Adding a Quick Table Calculation
1. Right-click on a measure in a
view.
2. Click on “Quick Table Calculation”
3. Choose the pre-defined table
calculation from the given list
Note:
• For advanced quick table
calculations, choose “Add Table
Calculation…”
• This will be reviewed during the
Tableau Advanced Training
103
Tableau Fundamentals
11/6/2019
Analyzing Data with Quick Table Calculations
Practice: Year over Year Change
Create a view according to the following specifications using the following starter
(Year_Over_Year_Change_Starter.twbx):
104
Tableau Fundamentals
11/6/2019
Analyzing Data with Quick Table Calculations
Practice: Using Rank – View One (Rank of Categories)
Create a view according to the following specifications using the following starter
(Using Rank Starter.twbx):
105
Tableau Fundamentals
11/6/2019
Analyzing Data with Quick Table Calculations
Practice: Using Rank – View Two (Rank to Rows)
Create a view according to the following specifications using the following starter
(Using Rank Starter.twbx):
1. Duplicate the previous view to a new sheet – name the copy Rank to Rows
2. Convert SUM(Sales) on the Marks card to a Discrete field and drag it to rows
before Category
106
Tableau Fundamentals
11/6/2019
Analyzing Data with Quick Table Calculations
Practice: Using Rank – View Two (Rank within
Department)
Create a view according to the following specifications using the following starter
(Using Rank Starter.twbx):
1. Duplicate the previous view to a new sheet – name the copy Rank within
Department
2. Edit the view to show Rank within the respective Department by changing scope
to Pane (Down) from Table (Down)
107
Tableau Fundamentals
11/6/2019
Using Parameters for Custom User
Input
Using Parameters for Custom User Input
Parameter Steps
1. Create it!
2. Use it!
3. Show it!
Parameters are a value that users can change when interacting with a view. It
allows users to have input control over the view and makes the data more
interactive. You can include parameters on worksheets or within dashboards so
they are included when you save to the web or publish to Tableau server.
109
Tableau Fundamentals
11/6/2019
Using Parameters for Custom User Input
Practice: Top N Filter
Create a view according to the following specifications using the following starter
(TopN_Filter_Starter.twbx):
110
Tableau Fundamentals
11/6/2019
Using Parameters for Custom User Input
Practice: Variable Increase Amount
Create a view according to the following specifications using the following starter
(Variable_Increase_Amount_Starter.twbx):
1. Create a parameter called Increase Percentage (range of values 1-2, step 0.05)
2. Use this parameter to create a calculated field called Sales Target
3. Add this field to the view & match formatting below:
111
Tableau Fundamentals
11/6/2019
Viewing Distributions
Viewing Distributions
Bins and Histograms
Creating Histograms and Bins in Tableau
Desktop
There are two ways to create histograms in
Tableau:
1. Use Show Me
– Drag Profit onto Rows
– Click on the Histogram Icon on Show
Me
113
Tableau Fundamentals
11/6/2019
Viewing Distributions
Bins and Histograms
Creating Histograms and Bins in Tableau Desktop
There are two ways to create histograms in Tableau:
2. Use the Measure Context Menu (continued)
– In the “Create Bins” dialog box, enter a name for the field and the size to
use for your bins
– Note: this can be edited if you created a histogram using the first method
by right-clicking on the field that is auto-generated in the Dimensions
area.
– You can use the “Load” button to see the minimum and maximum values.
114
Tableau Fundamentals
11/6/2019
Viewing Distributions
Practice: Histogram with Binned Measures
Create a view according to the following specifications using the following starter
(Creating_A_Histogram_With_Binned_Measures _Starter.twbx):
115
Tableau Fundamentals
11/6/2019
Viewing Distributions
Practice: Dynamic Bin Size
Create a view according to the following specifications using the following starter
(Dynamic_Bin_Size_Starter.twbx):
1. Allow users to select the bin size based on Score (min 1, max 25, step 1)
116
Tableau Fundamentals
11/6/2019
Highlighting Data with Reference
Lines
Highlighting Data with Reference Lines
Using Reference Lines
Reference Lines:
Reference Lines are used to mark specific
values or regions on an axis, and are based on
constant or computed values. For example, if
you are analyzing cost trends over multiple
years, a reference line can show you how you
compared to the goal each year.
You can set the reference line scope to Entire
Table, Per Pane, or Per Cell
Reference Bands:
Reference Bands can also be used when you
want to see your data within a certain window
value and display as shaded areas behind the
marks in a view between two constant or
compared values.
118
Tableau Fundamentals
11/6/2019
Highlighting Data with Reference Lines
Using Reference Lines
Add a dark red and bold reference line for the entire table, with a constant value type
of $500,000 and a custom label that reads “Quota is <Value>”
119
Tableau Fundamentals
11/6/2019
Making your Views Available
Making your Views Available
Dashboards!
Dashboards!
121
Tableau Fundamentals
11/6/2019
Making your Views Available
Dashboards!
Dashboards!
Dashboard Filters –
• Make filters go across
worksheets – right click on
legend
• Action filters – select, right
click, use as filter.
• Run on single select will not
allow you to CTRL+Click
122
Tableau Fundamentals
11/6/2019
Making your Views Available
Dashboard Actions!
Actions:
1. Filter
2. Highlight
3. URL
Calls
1. Select
2. Hover
3. Menu
123
Tableau Fundamentals
11/6/2019
Sharing Your Work
Sharing Your Work
125
Tableau Fundamentals
11/6/2019
Helpful Tableau Links
Helpful Tableau Links
Download Free Trial (2 Weeks) Support Central Tableau Site
• http://www.tableausoftware.com/products/trial?os=windows • http://sc.ge.com/*LearnTableau
• Click “Get Started” for Tableau Desktop version • GE based training and information about Tableau
• Install & start playing around! • Check out “GE Color Palette” towards the middle of the center
column. Has a download and instructions for adding the “GE”
Tableau Training colors to your palette options in Tableau.
• http://www.tableausoftware.com/learn/training – Note: you can also add custom shapes (like the GE logo)
once you get to the same folder where you’ll load the new
• Choose “On-Demand”
color palette.
• Watch videos and follow along in Tableau using the example
data sets provided. This training is VERY useful for getting up to YouTube Helpful Channels
speed on the basics and seeing what Tableau is capable of • Data Champions:
doing!
https://www.youtube.com/channel/UCC13VyUeQRsiRkCtv7lUV
Tableau Reader Nw
• Mariner Analytics & BI:
• http://www.tableau.com/products/reader
https://www.youtube.com/channel/UCHg7p6KOi1o8rETS4jRU0
• Similar to Adobe Reader, a user can use this to view a .twbx file
qg
if they don’t have the desktop version (or you don’t want to
publish to the server).
Other TableauSoftware.com Resources
P&W Tableau Server Links • Tableau Viz of the Day:
• Production: http://chpwpgtabp01.cloud.ge.com http://www.tableau.com/public/community/viz-of-the-day
• QA/Development: http://alpwpgtabq01.cloud.ge.com • Tableau Knowledge Base
http://kb.tableausoftware.com
Tableau Quick Start Guides
• Tableau Communities (Forums, Best Practices)
• http://www.tableausoftware.com/support/manuals/quickstart
http://community.tableausoftware.com
• Great site for 1-page refreshers on creating worksheets,
dashboards, and more. Great for searching how-to ideas asked & answered by real
people. They cover more real-world uses of Tableau and
descriptive solutions by experts.
PGS Tableau Collaboration Site (Colab)
• http://colab.ge.com/dashboard/canvas/v/100117636/home Big Data – Food for Thought
127
• Good resource for Tableau topics from PGS team who has been • Perceptual Edge Tableau Fundamentals
using Tableau to develop reports since 2013. 11/6/2019
http://www.PerceptualEdge.com