0% found this document useful (0 votes)
157 views33 pages

Management Information Systems: Lab 5 - Tableau: Basic Operation

This document provides an overview and demonstration of using Tableau to perform basic data visualization and analysis. It discusses loading data from an Excel file into Tableau, joining multiple tables, using dimensions and measures to create visualizations, and performing basic operations like filtering. The demonstration uses sales data from a coffee chain to illustrate how to identify unprofitable states or products with just a few clicks in Tableau.

Uploaded by

Gordon Hon
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
157 views33 pages

Management Information Systems: Lab 5 - Tableau: Basic Operation

This document provides an overview and demonstration of using Tableau to perform basic data visualization and analysis. It discusses loading data from an Excel file into Tableau, joining multiple tables, using dimensions and measures to create visualizations, and performing basic operations like filtering. The demonstration uses sales data from a coffee chain to illustrate how to identify unprofitable states or products with just a few clicks in Tableau.

Uploaded by

Gordon Hon
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 33

IIMT2601

Management Information Systems

Management Information Systems


IIMT2601

Lab 5 - Tableau: Basic Operation


IIMT2601
Management Information Systems

Objective
• At the end of this lesson, you should able to
– Identify what data visualization is
– Perform basic operation in Tableau

The University of Hong Kong 2


IIMT2601
Management Information Systems

Tableau
• Business Intelligence software
• Tableau excels at displaying data visually. Tableau’s
core purpose is to help you draw conclusions from
your data visually
• Support different databases and data sources,
including standard corporate databases, “big data”
data source etc.
• Analyzing data in Tableau is incredibly fast. What
used to take traditional Business Intelligence tools
hours to reveal can be discovered in Tableau in
seconds or minutes

The University of Hong Kong 3


IIMT2601
Management Information Systems

Demonstration
• Coffee Chain

The University of Hong Kong 4


IIMT2601
Management Information Systems

Demonstration
• From the excel file, can you easily tell what states
have products that are not making a profit?
• We can show it in Tableau in a few clicks
• The core approach to visual design in Tableau:
connect to a desired data source, and drag various
data fields to desired parts of the Tableau screen
• The result is a simple visualization that can then be
enhanced and modified by dragging additional
data fields to different destinations in the
workspace

The University of Hong Kong 5


IIMT2601
Management Information Systems

Import the data


• Import the excel file CoffeeChain
• The Join function provides different ways to merge
several data sets into a large combined data set
• Merge the factTable, Location and Product using
Left Join

Choose additional
matching fields

The University of Hong Kong 6


IIMT2601
Management Information Systems

Joining the table


• Begin by dragging the first table you want to use to
the top part of the screen. When you drag the next
table, Tableau will attempt to join the tables
automatically, based on common field names and
data types
• If Tableau cannot find common fields to join on, the
two-bubble icon will appear with a broken line
border and exclamation point
• Choosing and joining tables is often complicated.
You must be familiar with the structure of your data
source

The University of Hong Kong 7


IIMT2601
Management Information Systems

The interface

Data Pane Shelves

The University of Hong Kong 8


IIMT2601
Management Information Systems

Data Pane
• After importing the data, you will see the column
names in the excel file appear on the left
• Dimensions - categorical fields, such as date,
customer and Category. Dimensions are often
discrete.
• Measures – the metrics, such as COGS, sales and
profit. They are the numbers we want to analyze.
Measures are often continuous.

The University of Hong Kong 9


IIMT2601
Management Information Systems

Make the visualization by drag and drop

The University of Hong Kong 10


IIMT2601
Management Information Systems

Show Me
• Show Me displays a series of
thumbnail image representing the
different types of charts you can
create with just a few clicks
• If fields are selected, or you
already have a chart created that
you wish to change, Show Me will
only show chart types that are
appropriate for fields that are in
use with your current chart or that
have been selected in the Data
pane

The University of Hong Kong 11


IIMT2601
Management Information Systems

Show Me
• Depending on the number and type of fields selected,
Show Me will highlight the recommended thumbnail with
a blue box (this is yet another example of Tableau’s
attempt to employ visual best practices for you)
• If you hover your mouse over a Show Me thumbnail, the
bottom of the dialog box will show the name of the
chart type you are hovering over, as well as the number
of dimensions and /or measures that are required for
that chart type
• If you want to use that type chart type, just Ctrl-Click the
desired dimensions /measures in the Data pane until the
desired thumbnail is enabled. Then, click the thumbnail
to create the new chart

The University of Hong Kong 12


IIMT2601
Management Information Systems

Marks Card
• Tableau will make some default
assumptions about the type of chart
created or, more specifically, the mark
type that will be used
• For example, if you initially use a date
dimension for a chart, you will find a
line chart (and thus, a line mark type)
being chosen by default.
• If you choose no dimension but instead
choose more than one measure
(resulting in a scatter plot), you will find
the mark type defaults to an open
circle

The University of Hong Kong 13


IIMT2601
Management Information Systems

Color Options
• If your visualization consists of only one
color, clicking Color on the Marks card will
display a color palette
• Coloring on a dimension will create distinct
color values for each dimension member
• Dragging a measure onto Color will create
a shaded-variance color result based on
the “continuous” behavior of numeric
measures
• For example, a profit measure that ranges
from negative to positive values will color
the mark in a shaded variation based on
whether profit is negative or positive

The University of Hong Kong 14


IIMT2601
Management Information Systems

Edit Colors
• A color legend will appear
on the right
• Clicking the small arrow on
the legend and choosing
Edit Colors from the
resulting menu will present
options for customizing
color behavior

The University of Hong Kong 15


IIMT2601
Management Information Systems

Add another Dimension to the visualization

• Tableau supports displaying several Dimensions


/Measures on the same visualization
• The graph is showing the profit in each state, but
which product made contribution to profit?
• We can simply double click “Product” to add it to
the graph

The University of Hong Kong 16


IIMT2601
Management Information Systems

Filters
• Filtering is the process of narrowing
down your chart or graph to only the
data that is relevant to your current
need.
• No matter what visualization or
analytical tool you use, one of the first
things you will need to do is filter data
• For example, if you have an historical
data warehouse that contains 10
years of records, and almost certainly
you want to limit your view to a
specific year or a few years. Or you
only want to show certain regions,
sales that are at least $10,000

The University of Hong Kong 17


IIMT2601
Management Information Systems

• General
– If you drag a string
dimension to the Filters
shelf, a filter dialog will
appear, showing all
members of the dimension
– To exclude certain values
in your worksheet, check
the values you wish to
exclude, as well as the
Exclude checkbox in the
lower right
– When you click OK, the
filter will be immediately
applied and the chart will
immediately update to
reflect the new filter

The University of Hong Kong 18


IIMT2601
Management Information Systems

• Wildcard
– Allows freeform filters
using wildcard searches,
such as “Contains”,
“Starts with”, “Ends with”
and “Exactly matches”
• Top
– Filter on an aggregated
numeric value
– Limit the filter to the top
or bottom “N”
occurrences of the
dimension

The University of Hong Kong 19


IIMT2601
Management Information Systems

• Condition
– Filters the chosen
dimension, but not on the
actual dimension
members themselves
– You may specify a
condition based on an
aggregated numeric
value
– For example, if you only
wish to include
categories that are
unprofitable, select Sum
of Profit, and specify a
less than operator and
zero comparison value

The University of Hong Kong 20


IIMT2601
Management Information Systems

Filtering on Measure
• Filtering on a measure
presents a different type
of filter dialog that
provides numeric options
based on the range of
values within the measure
• First need to choose the
type of aggregation
calculation you wish to
use for the filter (sum,
count, and so forth)
• You can choose different
ways of bounding the
values

The University of Hong Kong 21


IIMT2601
Management Information Systems

Aggregation function
• There are several
aggregation functions in
Tableau, such as sum,
average, max, min etc.
• To change the
aggregation function of
the Measure, you can
click the measure that is
in the shelf, then choose
Measure

The University of Hong Kong 22


IIMT2601
Management Information Systems

Reference Lines, Bands and Distribution


• Helpful in highlighting a desired portion of a visual
chart
• Reference line
– A line that is drawn across the numeric axis of a chart
denoting a particular desired value, such as the
average
• Reference Band
– A shaded portion of numeric axis beginning and
ending at specified values
• Reference Distribution
– Several gradient shaded bands at various intervals
across the numeric axis

The University of Hong Kong 23


IIMT2601
Management Information Systems

Reference Line
• It may based on a variety of
calculations, using existing
measures in your chart
• You may also base the value
on a constant number that
your “hard code” into the
dialog box, or the value of a
parameter
• If you want to base a
reference line on a measure
other than the one actually
being displayed on the chart,
drag the desired measure to
Detail on the Marks first

The University of Hong Kong 24


IIMT2601
Management Information Systems

Reference Band
• The beginning and ending
values may be based on a
variety of calculations,
using existing measures in
your chart
• You may also base the
beginning and ending
values on a constant
number that your “hard
code” into the dialog box,
or the value of a
parameter

The University of Hong Kong 25


IIMT2601
Management Information Systems

Reference Distribution
• Rather than just specifying a
beginning and ending point for a
distribution, you may specify
several points, which are shaded
with various gradients
• Reference bands are particularly
helpful for certain chart types,
such as bullet charts and box plots

The University of Hong Kong 26


IIMT2601
Management Information Systems

Trend Line
• A line that appears on a chart
indicating the general trend the
underlying marks on the chart are
exhibiting
• Trend lines require both the Column
and Row contain a numeric measure.
A trend line is also permitted if a
chart is based on a date or
date/time dimension
• To create a trend line, right click the
chart and choose “Trend Lines”,
“Show trend lines”
• You can choose different model
types in the “Edit Trend Lines”

The University of Hong Kong 27


IIMT2601
Management Information Systems

Forecasting
• Tableau provides forecasting, the ability to examine
data and trends in existing date- or date/time-
based data and forecast what trend may occur in
the future
• The first requirement when forecasting is to create a
chart based on a date or date/time dimension. If
you choose to change the default discrete Year
date level of the dimension, you must choose a
continuous date level. Discrete date levels other
than Year won’t permit forecasting

The University of Hong Kong 28


IIMT2601
Management Information Systems

Practice 1
• Based on the Coffee Chain dataset build a chart to
answer the following questions
• Q1 Show the sum of COGS of each product, which
product has the least COGS?
• Q2 Show the average of COGS in each Market,
which Market has the highest COGS?
• Q3 Show the sum of margin of each product, which
product has the highest Margin?
• Q4 Show the total expenses in each Market Size,
which market size has the highest expenses?

The University of Hong Kong 29


IIMT2601
Management Information Systems

Practice 2
• Based on the Coffee chain dataset to answer the
following questions
• Q1 Find what product type is given the highest and
the lowest sales
• Q2 Which states is doing the best and the worst in
each product type in terms of sales

The University of Hong Kong 34


IIMT2601
Management Information Systems

Practice 3
• Based on the Coffee Chain dataset to answer the
following questions
• Q1 Show the sales of the Market from 2010 to 2013
• Q2 Show the trend of sales of the Market from 2010
to 2013
• Q3 Show the forecasting of sales of the Market in
2014
• Q4 What are the predicted sales of the 4 Market in
2014?

The University of Hong Kong 39


IIMT2601
Management Information Systems

Reference
• Tableau Learning
• Tableau: The official guide

The University of Hong Kong 44


IIMT2601
Management Information Systems

Hands-on Submission
• Submit you work on Moodle by the end of next
Friday 17:00 HKT (Apr 10)

Due 17:00

The University of Hong Kong 45

You might also like