Connecting to Data

if you and your group have any questions or get stuck as you work through this in-class exercise, please ask the instructor for assistance. Have fun!

Please note that creating a Tableau account and using the application requires your email address and data you load into Tableau Public to be stored on/shared with Tableau servers located outside Canada. B.C. privacy legislation requires we inform you of this and obtain your consent to this arrangement. Participation in this workshop will be considered as your consent.

  1. Getting Familiar with Tableau
    • If you haven’t already, download and install Tableau for Students
    • Open Tableau Desktop and get familiar with the interface
      • Discover Pane (right): Educational resources and links to relevant content
      • Recent Flows (middle): Previous files are displayed here.
      • Connections Pane (left): Select a data source
  2. Getting Started With Data
    • In Connections Pane (left), click Microsoft Excel. Open the Global Superstore Orders 2016.xlsx file you downloaded to your computer or, if you haven’t already, download it now
    • In the Connections Pane (see animation below), we see all the sheets in the Excel file. Drag the Orders sheet into the flow pane as shown
    • The Orders sheet can be renamed by simply double-clicking on the column name. Rename the sheet to Global Superstore Orders
    • The data itself is viewable in the data grid. You can rename a column by double-clicking on the column name (see animation below).
    • You can also change the default data type by clicking on the data icon as shown. There are 5 data types: numeric (numeric symbol), text (text symbol), geospatial (geospacial symbol), date(date symbol), and date-and-time (date and time symbol)

import example
  1. Working With Data
    • Click the Sheet 1 tab on the bottom toolbar to create our first worksheet

    bottom toolbar

    • We see column names on the left side menu, broken up into dimensions (blue) and measures (green). Dimensions are fields that cannot be aggregated; Measures are fields that can be measured, aggregated, or used for mathematical operations
    • Let’s get the relationship between two variables: Sales (in Measures), and Order Date (in Dimensions)
      • Click and drag the Sales measure into the Rows shelf (top)
      • In the dialogue box that appears, select AVG(Sales) for average sales
      • Click and drag the Order Date dimension into the Columns shelf (top)

setting up a relationship animated
  • In the dialogue box that appears, select YEAR(Order Date). In Tableau, it will automatically create a visualization

    • Click the ”+” in the YEAR(Order Date) blue pill and drill down to get quarters
    • Click Show Me (top right) to display the different plot types that Tableau recommends. Try a few and think about their effect on the 4 data visualization principles

    different plot types

    • The Marks card area (to the left of the visualization charts) is where you can control the visual features of your plot, Try changing the colour and size
    • You can also control the visual appearance of your plot according to dimensions of interest. For example, right-click drag the Category dimension onto the Color card. Select Category in the dialogue box that appears. Please note that the dialog box does not always appear

changing graph styles

NEXT STEP: Building Data Visualizations