Book Image

Mastering Tableau

By : David Baldwin
Book Image

Mastering Tableau

By: David Baldwin

Overview of this book

Tableau has emerged as one of the most popular Business Intelligence solutions in recent times, thanks to its powerful and interactive data visualization capabilities. This book will empower you to become a master in Tableau by exploiting the many new features introduced in Tableau 10.0. You will embark on this exciting journey by getting to know the valuable methods of utilizing advanced calculations to solve complex problems. These techniques include creative use of different types of calculations such as row-level, aggregate-level, and more. You will discover how almost any data visualization challenge can be met in Tableau by getting a proper understanding of the tool’s inner workings and creatively exploring possibilities. You’ll be armed with an arsenal of advanced chart types and techniques to enable you to efficiently and engagingly present information to a variety of audiences through the use of clear, efficient, and engaging dashboards. Explanations and examples of efficient and inefficient visualization techniques, well-designed and poorly designed dashboards, and compromise options when Tableau consumers will not embrace data visualization will build on your understanding of Tableau and how to use it efficiently. By the end of the book, you will be equipped with all the information you need to create effective dashboards and data visualization solutions using Tableau.
Table of Contents (18 chapters)
Mastering Tableau
Credits
About the Author
www.Packtpub.com
Preface

Preface

So what is this book about? The title certainly points in the right direction: Mastering Tableau. The word Mastering implies a journey to a level of competency beyond mere familiarity or superficial knowledge. The word Tableau, of course, limits the scope of a particular software package. Let’s extend the title by one word in order to hone the focus: Mastering Tableau Desktop. The word Desktop further narrows consideration by communicating that this book is not focused on Tableau Server, although there is a chapter dedicated to interacting with Server. Nor does this book dive deep into topics beyond the realm of Tableau, though other technologies such as R and SQL are discussed as they pertain to Tableau. Furthermore, this book is not focused on data visualization or architectural theory per se, though these topics are explored and every attempt is made to adhere to sound methodology as technical problems are discussed. Instead, this book attempts to build on a foundation of an already basic understanding of Tableau Desktop so as to provide a theoretical and practical basis for solving real-world challenges in an efficient and elegant manner. Along the way, many tips and tricks for use in everyday work are discussed and exercises with careful step-by-step instructions and commentary are provided.

What this book covers

Chapter 1, Getting Up to Speed - a Review of the Basics, provides a quick on-ramp for those new to Tableau and a useful review for those with experience. For a more thorough consideration of fundamental topics, see Learning Tableau, written by Joshua Milligan and published by Packt Publishing.

Chapter 2, All about Data - Getting Your Data Ready, commences a series of three "All about Data" chapters. The chapter begins with a theoretical discussion of the Tableau data paradigm and data mining topics and then moves on to practical ways to use Tableau to survey and cleanse data.

Chapter 3, All about Data - Joins, Blends, and Data Structures, explores complex joins, data blending, and pivoting.

Chapter 4, All about Data - Data Densification, Cubes, and Big Data, ends the series of "All about Data" chapters by surveying a variety of data topics, including the undocumented world of data densification, working with cubes and big data considerations.

Chapter 5, Table Calculations, focuses on two questions: “What is the function?” and “How is the function applied?” These questions provide a framework for discussing directional and non-directional table calculations as well as partitioning and addressing.

Chapter 6, Level of Detail Calculations, begins with two playground environments created in Tableau designed to provide a foundation for understanding level-of-detail calculations and then moves on to practical application.

Chapter 7, Beyond the Basic Chart Types, looks at improving some popular visualization types and then considers the largely underexplored topic of using background images in Tableau. The workbook provided with this chapter also provides many additional visualization types.

Chapter 8, Mapping, begins by considering how to expand Tableau’s native mapping capabilities without leaving the interface, and then explores extending Tableau mapping via other technologies, including connecting to WMS servers and MapBox. Lastly, the chapter demonstrates how to provide the end user options for choosing different maps and ends with a discussion on custom polygons.

Chapter 9, Tableau for Presentations, discusses techniques for integrating Tableau with PowerPoint as well as how to use Tableau as a standalone presentation tool via animation and story points.

Chapter 10, Visualization Best Practices and Dashboard Design, begins by considering design topics such as formatting, color, and visualization types and then addresses dashboard layout options. The chapter ends by exploring sheet swapping in some depth.

Chapter 11, Improving Performance, is the longest chapter of the book and attempts to systematically (though not exhaustively) cover options for optimizing Tableau performance.

Chapter 12, Interacting with Tableau Server, explores how to optimize Tableau Server architecture for best performance and easiest maintenance. The chapter also considers the web authoring environment, user filters, and accessing the Performance Recording dashboard via Tableau Server.

Chapter 13, R Integration, begins by considering how to install and integrate R with Tableau and then explores R and Tableau integration via a series of exercises. The chapter ends with a troubleshooting section.

What you need for this book

In order to make use of this book, an installation of Tableau 10 is required. The following technologies are mentioned and lightly utilized in this book but are not strictly required:

  • Chapter 2, All about Data - Getting Your Data Ready, makes light use of Adobe Acrobat.

  • Access to SQL Server is helpful in a few places, especially in Chapter 4, All about Data - Data Densification, Cubes, and Big Data.

  • Chapter 7, Beyond the Basic Chart Types, assumes access to Inkscape to complete two exercises (Inkscape is an open source vector drawing application that is similar to Adobe Illustrator).

  • Access to Tableau Server is helpful in a few places, especially Chapter 12, Interacting with Tableau Server, where permissions for publishing data sources and editing in the web authoring environment are assumed.

  • Access to Rserve is assumed for Chapter 13, R Integration. RGui and RStudio are also helpful but not strictly required.

Who this book is for

Mastering Tableau targets persons with 5+ months of experience using Tableau. Although not strictly required, a thorough reading of the predecessor to this book, Learning Tableau, is helpful. Alternatively, the Desktop I and II training provided by Tableau provides a helpful foundation. A basic knowledge of SQL is helpful in a few sections. A basic knowledge of Excel is assumed.

Conventions

In this book, you will find a number of styles of text that distinguish between different kinds of information. Here are some examples of these styles, and an explanation of their meaning.

Code words in text, database table names, folder names, filenames, file extensions, pathnames, dummy URLs, user input and Twitter handles are shown as follows: "We can include other contexts through the use of the include directive. "

A block of code is set as follows:

IF [Actual/Forecast] = "Actual"
THEN SUM([World Indicators].[Country B Population])
ELSE PREVIOUS_VALUE(0) * [Select Country B Forecast] + PREVIOUS_VALUE(0)
END

When it is necessary to draw your attention to a particular part of a code block, the relevant lines or items are set in bold:

IF [Actual/Forecast] = "Actual"
THEN SUM([World Indicators].[Country B Population])
ELSE PREVIOUS_VALUE(0) * [Select Country B Forecast] + PREVIOUS_VALUE(0)
END

Any command-line input or output is written as follows:

# cd C:\Users\DavidBaldwin\Desktop\New_Directory

New terms and important words are shown in bold. Words that you see on the screen, in menus or dialog boxes, for example, appear in the text like this: "Clicking on the Next button moves you to the next screen".

Note

Warnings or important notes appear in a box like this.

Tip

Tips and tricks appear like this.

Reader feedback

Feedback from our readers is always welcome. Let us know what you think about this book—what you liked or may have disliked. Reader feedback is important for us to develop titles that you really get the most out of.

To send us general feedback, simply send an e-mail to [email protected], and mention the book title via the subject of your message.

If there is a topic that you have expertise in and you are interested in either writing or contributing to a book, see our author guide on https://www.packtpub.com/books/info/packt/authors.

Customer support

Now that you are the proud owner of a Packt book, we have a number of things to help you to get the most from your purchase.

Downloading the example code

You can download the example code files for all Packt books you have purchased from your account at http://www.packtpub.com. If you purchased this book elsewhere, you can visit http://www.packtpub.com/support and register to have the files e-mailed directly to you.

You can download the code files by following these steps:

  1. Log in or register to our website using your e-mail address and password.

  2. Hover the mouse pointer on the SUPPORT tab at the top.

  3. Click on Code Downloads & Errata.

  4. Enter the name of the book in the Search box.

  5. Select the book for which you're looking to download the code files.

  6. Choose from the drop-down menu where you purchased this book from.

  7. Click on Code Download.

Once the file is downloaded, please make sure that you unzip or extract the folder using the latest version of:

  • WinRAR / 7-Zip for Windows

  • Zipeg / iZip / UnRarX for Mac

  • 7-Zip / PeaZip for Linux

The code bundle for the book is also hosted on GitHub at https://github.com/PacktPublishing/Mastering-Tableau. We also have other code bundles from our rich catalog of books and videos available at https://github.com/PacktPublishing/. Check them out!

Downloading the color images of this book

We also provide you a PDF file that has color images of the screenshots/diagrams used in this book. The color images will help you better understand the changes in the output. You can download this file from: https://www.packtpub.com/sites/default/files/downloads/MasteringTableau_ColorImages.pdf.

Errata

Although we have taken every care to ensure the accuracy of our content, mistakes do happen. If you find a mistake in one of our books—maybe a mistake in the text or the code—we would be grateful if you would report this to us. By doing so, you can save other readers from frustration and help us improve subsequent versions of this book. If you find any errata, please report them by visiting http://www.packtpub.com/submit-errata, selecting your book, clicking on the errata submission form link, and entering the details of your errata. Once your errata are verified, your submission will be accepted and the errata will be uploaded on our website, or added to any list of existing errata, under the Errata section of that title. Any existing errata can be viewed by selecting your title from http://www.packtpub.com/support.

Piracy

Piracy of copyright material on the Internet is an ongoing problem across all media. At Packt, we take the protection of our copyright and licenses very seriously. If you come across any illegal copies of our works, in any form, on the Internet, please provide us with the location address or website name immediately so that we can pursue a remedy.

Please contact us at [email protected] with a link to the suspected pirated material.

We appreciate your help in protecting our authors, and our ability to bring you valuable content.

Questions

You can contact us at [email protected] if you are having a problem with any aspect of the book, and we will do our best to address it.