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
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Mastering Tableau

You're reading from   Mastering Tableau Smart Business Intelligence techniques to get maximum insights from your data

Arrow left icon
Product type Paperback
Published in Dec 2016
Publisher Packt
ISBN-13 9781784397692
Length 476 pages
Edition 1st Edition
Languages
Tools
Arrow right icon
Authors (2):
Arrow left icon
Jen Stirrup Jen Stirrup
Author Profile Icon Jen Stirrup
Jen Stirrup
David Baldwin David Baldwin
Author Profile Icon David Baldwin
David Baldwin
Arrow right icon
View More author details
Toc

Table of Contents (14) Chapters Close

Preface 1. Getting Up to Speed – a Review of the Basics FREE CHAPTER 2. All about Data – Getting Your Data Ready 3. All about Data – Joins, Blends, and Data Structures 4. All about Data – Data Densification, Cubes, and Big Data 5. Table Calculations 6. Level of Detail Calculations 7. Beyond the Basic Chart Types 8. Mapping 9. Tableau for Presentations 10. Visualization Best Practices and Dashboard Design 11. Improving Performance 12. Interacting with Tableau Server 13. R Integration

Worksheet and dashboard creation

At the heart of Tableau are worksheets and dashboards. Worksheets contain individual visualizations and dashboards contain one or more worksheets. Additionally, worksheets and dashboards may be combined into stories to communicate specific insights to the end user via a presentation environment. Lastly, all worksheets, dashboards, and stories are organized in workbooks that can be accessed via Tableau Desktop, Server, or Reader. In this section, we will look at worksheet and dashboard creation with the intent of not only communicating the basics, but also providing some insight that may prove helpful to even more seasoned Tableau authors.

Worksheet creation

At the most fundamental level, a visualization in Tableau is created by placing one or more fields on one or more shelves. To state this as a pseudo-equation:

Field(s) + shelf(s) = Viz

As an example, note that the visualization created in the following screenshot is generated by placing the Sales field on the Text shelf. Although the results are quite simple - a single number - this does qualify as a view. In other words, a Field (Sales) placed on a shelf (Text) has generated a Viz:

Worksheet creation

Exercise - fundamentals of visualizations

Let's explore the basics of creating a visualization via an exercise:

  1. Navigate to https://public.tableau.com/profile/david.baldwin#!/ to locate and download the workbook associated with this chapter.
  2. In the workbook, find the tab labeled Fundamentals of Visualizations:

    Exercise - fundamentals of visualizations

  3. Locate Region within the Dimensions portion of the Data pane:

    Exercise - fundamentals of visualizations

  4. Drag Region to the Color shelf; that is, Region + Color shelf = what is shown in the following screenshot:

    Exercise - fundamentals of visualizations

  5. Click on the Color shelf and then on Edit Colors... to adjust colors as desired:

    Exercise - fundamentals of visualizations

  6. Next, move Region to the Size, Label/Text, Detail, Columns, and Rows shelves. After placing Region on each shelf, click on the shelf to access additional options.
  7. Lastly, choose other fields to drop on various shelves to continue exploring Tableau's behavior.

As you continue exploring Tableau's behavior by dragging and dropping different fields onto different shelves, you will notice that Tableau responds with default behaviors. These defaults, however, can be overridden, which we will explore in the following section.

Beyond default behavior

Note that in the previous exercise, the Marks card perpetually reads Automatic. This means that Tableau is providing the default view. The default view can be easily overridden by choosing a different selection from the drop-down menu:

Beyond default behavior

Another type of default behavior can be observed when dragging a field onto a shelf. For example, dragging and dropping a measure onto a shelf will typically result in the aggregation Sum. To override this default behavior, right click and drag a field from the Data pane and drop it onto a shelf. Tableau will respond by opening a dialog box with the possible options. An example of this is shown in the following screenshot, where the field Region has been placed on the Rows shelf via a right-click, drag and drop action:

Beyond default behavior

Exercise - overriding defaults

Let's walk through an exercise overriding the two default behaviors discussed previously:

  1. In the workbook associated with this chapter, navigate to the Overriding Defaults worksheet, right-click and drag Order Date to the Columns shelf.
  2. Within the resulting dialog box, choose the second instance of MONTH(Order Date):

    Exercise - overriding defaults

  3. Place Sales on the Rows shelf and Region on the Details shelf.
  4. Click on the dropdown in the Marks card and select Area:

    Exercise - overriding defaults

Show Me

Show Me allows the Tableau author to create visualizations at the click of a button. To understand how it works, consider the following screenshot:

Show Me

  1. A: Selected field(s) in the Data pane.
  2. B: Field(s) deployed in the view; that is, Pills.
  3. C: The recommended view.
  4. D: Help text communicating the requirements for creating the recommended view for any selection choice over which the cursor is placed.
  5. Every icon in Show Me that is not grayed out represents a visualization that can be created simply by clicking on it. For example, in the preceding screenshot, the Tableau author may choose to click on the pie chart icon to create a pie chart based on the selected and deployed fields.

    Note

    Show Me options are highlighted based on two criteria: the selected field(s) in the Data pane and the fields(s) deployed in the view.

  6. Show Me may be effectively used for the following reasons:
    • Efficiency: The proficient Tableau author already knows how to create the basic visualization types. Show Me automates these basic types and thus may be used for quicker production.
    • Inspiration: Determining an effective way to visualize a dataset can be challenging. Show Me can help with this challenge by allowing the Tableau author to quickly consider various options.
    • Education: An inexperienced Tableau author may access Show Me to better understand how various visualizations are created. Much can be learned by reading the help text displayed at the bottom of Show Me and observing the results generated by clicking on various options.
  7. These three reasons communicate the strong value that Show Me provides for worksheet creation; however, there is one reason for which it should not be used: as a crutch. The Tableau author who clicks on the various options without understanding how each visualization is created is not only shortchanging the educational process, but may generate results that are not well understood and could thus lead to detrimental business decisions.

Dashboard creation

Although, as stated previously, a dashboard contains one or more worksheets, dashboards are much more than static presentations. They are an essential part of Tableau's interactivity. In this section, we will populate a dashboard with worksheets and then deploy actions for interactivity.

Exercise - building a dashboard

  1. In the workbook associated with this chapter, navigate to the tab entitled Building a Dashboard.
  2. Within the Dashboard pane located on the left-hand portion of the screen, double-click on each of the following worksheets (in the order in which they are listed) to add them to the dashboard:
    • US Sales
    • Customer Segment
    • Scatter Plot
    • Customers

  3. In the lower right-hand corner of the dashboard, click in the blank area below Profit Ratio to select the vertical container:
    • After clicking in the blank area, you should see a blue border around the filter and the legends. This indicates that the vertical container is selected.

  4. As shown in the following screenshot, select the vertical container handle and drag it to the left-hand side of the Customers worksheet. Note the gray shading, which communicates where the container will be placed:

    Exercise - building a dashboard

    Tip

    The gray shading (provided by Tableau when dragging elements such as worksheets and containers onto a dashboard) helpfully communicates where the element will be placed. Take your time and observe carefully when placing an element on a dashboard or the results may be unexpected.

  5. Format the dashboard as desired. The following tips may prove helpful:
    1.  Adjust the sizes of the elements on the screen by hovering over the edges between each element and then clicking and dragging as desired.
    2. Note that the Sales and Profit legends in the following screenshot are floating elements. Make an element float by right-clicking on the element handle and selecting Floating. (See the previous screenshot and note that the handle is located immediately above Region, in the upper-right-hand corner).
    3. Create Horizontal and Vertical containers by dragging those objects from the bottom portion of the Dashboard pane.
    4. Drag the edges of containers to adjust the size of each worksheet.
    5. Display the dashboard title via Dashboard | Show Title...:

      Exercise - building a dashboard

Exercise - adding interactivity to a dashboard

One of the primary benefits of Tableau is the interactivity it provides the end user. Dashboards are not simply for viewing; they are meant for interaction. In this exercise, we will add interactivity to the dashboard that was created in the previous exercise:

  1. Starting where the previous exercise ended, click the drop-down menu associated with the Region filter and navigate to Apply to Worksheets | All Using this Data Source:

    Exercise - adding interactivity to a dashboard

  2. In order to use the map as a filter for the other worksheets on the dashboard, click the Use as Filter icon located in the top-right-hand corner of the US Sales worksheet:

    Exercise - adding interactivity to a dashboard

  3. Similarly, set Customer Segment to Use as Filter.
  4. Navigate to the menu option Dashboard | Actions.
  5. Within the dialog box, navigate to Add Action | Filter and create a filter like the one shown in the following screenshot:

    Exercise - adding interactivity to a dashboard

Having completed the preceding dashboard exercise, you should now be able to click on various objects on the dashboard and observe their interactivity. To learn advanced dashboarding techniques, be sure to check out Chapter 10Visualization Best Practices and Dashboard Design.

You have been reading a chapter from
Mastering Tableau
Published in: Dec 2016
Publisher: Packt
ISBN-13: 9781784397692
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