Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Learning Tableau

You're reading from   Learning Tableau Leverage the power of Tableau 9.0 to design rich data visualizations and build fully interactive dashboards

Arrow left icon
Product type Paperback
Published in Apr 2015
Publisher Packt
ISBN-13 9781784391164
Length 340 pages
Edition 1st Edition
Tools
Arrow right icon
Author (1):
Arrow left icon
Joshua N. Milligan Joshua N. Milligan
Author Profile Icon Joshua N. Milligan
Joshua N. Milligan
Arrow right icon
View More author details
Toc

Table of Contents (13) Chapters Close

Preface 1. Creating Your First Visualizations and Dashboard FREE CHAPTER 2. Working with Data in Tableau 3. Moving from Foundational to Advanced Visualizations 4. Using Row-level and Aggregate Calculations 5. Table Calculations 6. Formatting a Visualization to Look Great and Work Well 7. Telling a Data Story with Dashboards 8. Adding Value to Analysis – Trends, Distributions, and Forecasting 9. Making Data Work for You 10. Advanced Techniques, Tips, and Tricks 11. Sharing Your Data Story Index

Connecting to data in Access

Tableau connects to data stored in a wide variety of files and databases. This includes flat files such as Excel and text files, relational databases such as SQL Server and Oracle, cloud-based data sources such as Google Analytics and Amazon Redshift, and OLAP data sources such as Microsoft SQL Server Analysis Services. With very few exceptions, the process of building visualizations and performing analysis will be the same no matter what data source you use. We'll cover the details of connecting to different data sources in later chapters.

For now, we will connect to an Access data source included in the resources supplied with this book. This chapter's workbook includes a connection to the data source, but we will walk through the steps of connecting using a new workbook first:

  1. Open Tableau. The home screen should appear. If you are not on the home screen, then from the menu, navigate to Data | New Data Source.
  2. Under Connect in the To a file section, click on Microsoft Access.
  3. Click on Browse… and navigate to the Learning Tableau\Data directory and open Coffee Chain.mdb.
  4. The database does not contain any security, so you do not need to adjust either the Database Password or Workgroup Security options. Click on OK to connect.
  5. Tableau's data connection screen allows you to visually create connections to data sources. We'll look at the details of this screen in the next chapter. For now, drag the CoffeeChain Query table, located on the left-hand side under Table, into the center of the screen. This query contains all the fields we'll need in order to build our initial visualizations and the dashboard. The query functions look like a single table in the Tableau connection.
    Connecting to data in Access
  6. Once you have configured a data connection, you can create visualizations and dashboards by clicking on a tab at the bottom. Click on the Sheet 1 tab in the lower-left corner.
  7. If the Show Me panel is displayed in the upper-right corner, collapse it by clicking at the top of the panel where the Show Me text appears.

You should now be in the main work area of Tableau, which looks like this:

Connecting to data in Access

Locate the numbered features of the main workspace. We'll refer to these features throughout the book, so familiarize yourself with the terminology:

  • 1: The menu allows you to perform a wide variety of functions.
  • 2: The toolbar makes common functions, such as undo, redo, save, connect to data, and so on, easily available.
  • 3: The sidebar appears on the left-hand side and contains different features and controls based on your current task (for example, data visualization, applying analytics, formatting, or designing dashboards). The default sidebar in the main workspace consists of two tabs allowing you easy access to data and analytics. The Data window consists of data source connection(s), and the fields contained in the data sources are divided into Dimensions and Measures.
  • 4: You can drag and drop data fields from the Data window onto various shelves, such as Pages, Filters, Columns, Rows, Color, Size, and Text.
  • 5: The canvas (sometimes called the view or visualization) is where Tableau will draw visualizations based on where you drag and drop fields. You may also drag and drop fields directly onto the canvas.

    Note

    Observe the distinction between fields that are in the Data window and fields that are in the view. Fields listed in the Data window are available to add to a view. Fields that you have dropped onto shelves or the canvas are in the view or active fields.

  • 6: The tabs give you easy access to the data connection screen and also to each sheet, dashboard, and story you create in the current workbook. At the bottom is a single tab named Sheet 1. As you build your workbook, you will most likely add new sheets (often also called views), which are individual visualizations. You may also add dashboards (these combine and relate multiple sheets and other components together on a single screen) and even stories (these combine multiple dashboards and views into a unified data story). A set of buttons next to the existing tabs allows the quick creation of new sheets, dashboards, or stories.
  • 7: The status bar will give you information about the current view and includes some options on the right-hand side to navigate sheets in the workbook.

Having created your connection to the data, you are ready to begin to visualize and analyze the data. Over the course of the following examples, you'll take on the role of an analyst for the coffee chain. We'll build multiple visualizations that answer various questions and finally put everything together in an interactive dashboard. As we begin, let's consider a few of the foundational principles.

You have been reading a chapter from
Learning Tableau
Published in: Apr 2015
Publisher: Packt
ISBN-13: 9781784391164
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime
Banner background image