Packt Getting Started With Tableau 2019.2
Packt Getting Started With Tableau 2019.2
Every effort has been made in the preparation of this book to ensure
the accuracy of the information presented. However, the information
contained in this book is sold without warranty, either express or
implied. Neither the author, nor Packt Publishing or its dealers and
distributors, will be held liable for any damages caused or alleged to
have been caused directly or indirectly by this book.
Livery Place
35 Livery Street
ISBN 978-1-83855-306-7
www.packtpub.com
Packt.com
Subscribe to our online digital library for full access to over 7,000
books and videos, as well as industry leading tools to help you plan
your personal development and advance your career. For more
information, please visit our website.
Why subscribe?
Spend less time learning and more time coding with practical
eBooks and Videos from over 4,000 industry professionals
Learn better with Skill Plans built especially for you
Get a free eBook or video every month
Fully searchable for easy access to vital information
Copy and paste, print, and bookmark content
Did you know that Packt offers eBook versions of every book
published, with PDF and ePub files available? You can upgrade to
the eBook version at www.Packt.com and as a print book customer,
you are entitled to a discount on the eBook copy. Get in touch with
us at [email protected] for more details.
I'd like to first thank Laura for her daily support and
understanding. Writing a book is not an easy task, even for a
second edition. A special thanks to Ivett, Sayli, Unnati, and all the
Packt team for making the publication of this book possible.
Finally, to everyone with the same passion for data visualization,
thanks for having contributed making this passion grow on me,
from my first bar chart to the completion of this book.
About the reviewer
Ivett Kovács was always very comfortable with data—after majoring
in statistics, she started working as a data analyst. She was one of
the first Hungarian power users of Tableau Desktop 2012, and has
been mastering Tableau ever since. Currently, she is Starschema's
senior data visualization expert, leading a team of 10+ dataviz
developers. She is not only Tableau certified, but has also been a
Tableau Ambassador since 2017, as well as an Iron Viz judge.
She is also a featured volunteer with Viz for Social Good. She has
developed several Tableau dashboards on various social topics,
such as the refugee crisis and gender inequality in tech companies
and political institutions.
Packt is searching for authors
like you
If you're interested in becoming an author for Packt, please visit
authors.packtpub.com and apply today. We have worked with
thousands of developers and tech professionals, just like you, to help
them share their insight with the global tech community. You can
make a general application, apply for a specific hot topic that we are
recruiting an author for, or submit your own idea.
Preface
Tableau is one of the leading data visualization tools and is regularly
updated with new functionalities and features. The latest release,
Tableau 2019.2 promises new and advanced features related to
visual analytics, reporting, dashboarding, and a host of other data
visualization aspects. Getting Started with Tableau 2019.2 will get
you up to speed with these additional functionalities.
Chapter 2, The Tableau Core, explains the basics that every Tableau
users should know. It contains an overview of the different products,
a description of Tableau's workspaces, wordings, and clear
explanations of Tableau's most crucial concepts, such as Dimension,
Measure, Discrete, Continuous, Live, and Extract.
Chapter 12, Dealing with Security, is the last technical chapter of this
book and focuses on three ways to secure your data: permissions on
Tableau Server, user filters on Tableau Desktop, and row-level data
security in your data.
Once the file is downloaded, please make sure that you unzip or
extract the folder using the latest version of:
The code bundle for the book is also hosted on GitHub at:
https://github.com/PacktPublishing/Getting-Started-with-Tableau-
2019.2. In case there's an update to the code, it will be updated on
the existing GitHub repository.
We also have other code bundles from our rich catalog of books and
videos available at https://github.com/PacktPublishing/. Check them
out!
Conventions used
There are a number of text conventions used throughout this book.
Note
Warnings or important notes appear in a box like this.
Tip
Tips and tricks appear like this.
Get in touch
Feedback from our readers is always welcome.
Piracy: If you come across any illegal copies of our works in any
form on the internet, we would be grateful if you would provide us
with the location address or website name. Please contact us at
[email protected] with a link to the material.
Reviews
Please leave a review. Once you have read and used this book, why
not leave a review on the site that you purchased it from? Potential
readers can then see and use your unbiased opinion to make
purchase decisions, we at Packt can understand what you think
about our products, and our authors can see your feedback on their
book. Thank you!
If you are a Tableau user looking for information about its new
features and how to use them, you are in the right place. If you are
new to Tableau, start with Chapter 2, The Tableau Core, to learn
about the basics and advanced features of Tableau. Throughout this
book, many new features will be explained. Having finished all of the
chapters, you can come back here to learn about the newest
features in detail.
In this first chapter, we'll cover the new features in Tableau's 2019
releases (2019.1 and 2019.2). This chapter will be divided into two
parts, as follows:
Connector improvements
Worksheet enhancement
New actions
Empowered Dashboard
Tableau Server
For each part, each major feature has its own section. Next to the
name of the feature, between brackets, the version that introduced
the new feature will be specified.
Tip
This book focuses on data visualization with Tableau Desktop
and Tableau Server/Online. Tableau Prep is not covered, as it
fulfills a different need. You can learn more about Tableau Prep
at https://www.tableau.com/products/prep.
Let's start with Tableau Desktop; get ready to discover many great
new features!
Connector improvements
There are no changes regarding the way you connect to data or
what you can do with data sources. However, the newest version of
Tableau includes four new connectors, all of which have been
available since Tableau 2019.1:
Note
Download the Flights.xlsx Excel file from the Chapter 1:
Catching up with Tableau 2019 section of my website,
https://tableau2019.ladataviz.com or browse to
https://ladataviz.com/wp-content/uploads/2019/05/Flights.xlsx.
This file contains one hundred lines and provides information on the
departure and arrival to airports, as well as the number of
passengers.
Let's start:
If, like me, you aren't new to Tableau, you will be impressed by how
fast and easy it is to achieve this now. That's what we love about
each new Tableau release: it always makes our analysis faster and
easier to do.
But that's not all! Let's open the Maps Layers pane using the Map
top menu. Three new styles have been added. You can now
visualize your data using the Streets, Outdoors, or Satellite styles.
I can now show you where I grew up; good luck finding it:
Oh! And is if this wasn't enough, there are also new data layers that
you can add: Terrain, Routes, Water Labels, Cities, Point of
Interest, Neighborhoods, Building Footprints, and so on. Each
style has newer and richer layers. Mapping has never been so good.
Other improvements
The following is a list of other small visualization improvements:
New Browser tab: Always opens the link in a new browser tab,
even if a Web Page object exists in the Dashboard.
Web Page object: Opens the URL in a Web Page object in your
Dashboard. You can even have multiple Web Page objects in
your Dashboard with multiple URL actions targeting each Web
Page object separately.
Browser tab if no Web Page objects exists: The default
option; this opens the URL in a browser tab if there is no Web
Page object.
Rejoice, because this is over! You can now add a toggle button to
containers, allowing you and your user to show or hide it at will.
There's only one condition at the moment, which is that the container
needs to be floating.
Adding a toggle button is quite easy: select the containers (with the
Select Container option when you click on an item, or use the Item
hierarchy in the Layout pane), then select Add toggle button from
the container options. A default toggle button is automatically added
to your Dashboard. Among the button options, you'll find the ability to
Show or Hide the container and edit it with the Edit Button…
option.
Note
You can also use the Alt + Click shortcut to perform the button
action. Of course, this is only needed in editor mode. When the
Dashboard is published or open with Tableau Reader, the button
is triggered by a simple click.
If you click on Edit Button… a new window will open. Here, you can
choose what Dashboard element will be impacted by the button, the
Button Style (image or text), and the Button Appearance. The
Button Appearance part lets you choose the Image (or Title and
Font), Border, Background, and Tooltip when the item is currently
shown or hidden.
Note
Download the ZIP file named ToggleButtonStart.zip from the
Chapter 1: Catching up with Tableau 2019 section of my
website, https://tableau2019.ladataviz.com or, browse to
https://ladataviz.com/wp-
content/uploads/2019/05/ToggleButtonStart.zip.
This new feature allows everyone to build clearer and more efficient
Dashboards. The next feature is really simple to understand and
use, but will definitely help you save a lot of time.
Other improvements
Don't think that the next three improvements don't have their own
sections because they aren't important! I decided to group them only
because they are all really easy to explain, understand, and use, as
you will discover:
That's it for Tableau Desktop. In the next section, we'll see what's
new in Tableau Server.
Tableau Server
Ask Data is without a doubt one of the most important new features
of the 2019 releases. However, the change that everyone will directly
spot is the totally new browsing experience, with a new way to group
published content and a fresh look.
Tableau Server 2019.2 pushes this change further with a totally new
look and feel when navigating on Tableau Server. The new Home
page displays your recently used content, your favorites, and what
other Tableau users are viewing. The top menu has also totally
disappeared to leave room for a new left navigation pane. Don't be
afraid – the options are still the same. Here's the new Home page:
As you may have noticed, if you click on a data source, a strange
and new tab will open. I said strange, but I should have used the
word awesome. This is Ask Data.
Ask Data (2019.1)
Ask Data is the first view that opens when you click on a data
source. It's a new tool to query any data sources using the English
language. With this new feature, Tableau Server becomes more and
more easy to use for everyone. But how does it work, exactly?
On the left, you'll find something similar to the Data pane in Tableau
Desktop, and in the middle, a simple search bar with some
suggestions. The following is an example of Ask Data when using
the Sample – Superstore data source:
All you have to do is ask. Write something in the search bar and a
new browser tab will automatically open with the result of what you
asked for. For example, if you write sum of profit by state, Ask
Data automatically creates a map with the sales in color:
Without any knowledge of how to use Tableau to create a
visualization, Ask Data was able to convert some text into a
visualization.
On the Data pane on the left, when you hover over a field, a nice
tooltip gives you some quick insights about the number of values,
their distribution, and even the formula (if it's a calculated field). But
wait—there's more! If you click on the small arrow next to a field, you
can use the Edit synonyms option. When you add a synonym to a
field, you are able to use that synonym in your sentence to create
the visualization.
On the top, you can see that the search bar has expanded and
suggested that you can adjust the question or use the Clear All
button to start over. Here are some examples of what you can add:
If you are satisfied with the visualization but you want to quickly
change a Measure or Dimension, you can click on different fields in
the query box to open a menu that allows you to choose a different
field and its aggregation. For example, if you click on sum of Profit,
you can quickly change it to display the discount instead, as you can
see in the following screenshot:
Note
The 2019.2 version of Tableau Server pushes Ask Data even
further, allowing you to write simple calculations such as avg
sales / avg profit, but you can also create multiple Sheets and
save the workbook directly in a project.
Thanks to this new pane, you can create alerts using the Create
button, but also view and subscribe to all the existing Alerts that
have been set by other users. When you click on an Alert, you will
see all of its details (condition, last triggered, owner, and so on).
When you click on the button, Tableau opens preview mode, where
you can select Laptop, Tablet, or Phone to see how your
Dashboard renders on those different devices.
Other improvements
Here is a list of other new features available on Tableau Server:
Your Tableau life is now easier than ever before. You can add
buttons to show and hide containers, automatically replace a
Worksheet in a Dashboard, customize the reference line tooltip,
show the sorts control, name your Dashboard zone, control the URL
action targets, and sort without having to think twice.
You can also do more than ever. With the new Parameter actions,
you will be able to create new types of interactivity between data and
users. With the awesome vector maps and new spatial calculations,
working with maps has never felt so good.
2019 is already a great year for Tableau users and the Tableau
community. This first chapter, which described its new features, is
now over. If you learned how to use Tableau with this book, I hope
that this chapter has provided you with a greater desire to use
Tableau. If you already know Tableau, I hope this chapter gives you
a clear idea and the motivation to use the new versions that are
available.. Also, I'm sure this book has more to teach you (and that's
surely why you purchased it), so don't hesitate to continue reading:
read the tips, try the tutorials, and learn more about Tableau
Desktop, Tableau Server, and the Tableau community.
Chapter 2. The Tableau Core
New to Tableau? You are in the right place to start! Tableau is
simple, and you could start using it without any training. However,
using it the wrong way, or without knowing the basics, is a big
mistake. I have met many people who were unhappy with Tableau,
just because they never learned the basics.
To begin, we'll go through all the things that every Tableau user
should know. The following topics will be covered in this chapter:
By the end of this chapter, you'll have all the knowledge you need to
start your Tableau journey in the best possible way.
Like every tool, Tableau has its wording. Let's now learn how to
speak Tableau.
Speaking Tableau
Rather than a big list of all the terms, let's go through the basic
Tableau life cycle.
The first page you see when you open Tableau Desktop is the Start
page. Here, you can connect to data, open recent workbooks,
discover the Viz of the Week, and open your saved data sources
quickly.
On the left, you can see your Data Source with all the fields split
between two elements: Measures and Dimensions. Each field has
a data type (Text, Number, Boolean, and so on). Later, you'll learn
how to create new fields or elements, such as Groups, Bins,
Hierarchies, Sets, Parameters, or Calculated Fields.
The big blank part is the View. It is here that your visualization will
be displayed. Around the View, you can see different shelves (Rows,
Columns, Pages, Filters, and Marks). To create visualizations, you
have to put fields on those shelves. Once a field is on a shelf, it is
called a pill. Pills can be green if Continuous, or blue if Discrete.
In the View, every distinct element you can select (click on) is called
a Mark. Each Mark has one type (Bar, Circle, Line, and so on) and
can have some properties (Color, Size, Label, and so on).
If you want to tell a Story with your data, you can create a Story. The
goal of the Story is to prepare a succession of Story points (each of
them could be a Dashboard or a Worksheet). Each Story point is a
new insight into your Story where you can customize the filters and
captions and add some text. When presenting or sharing a Story,
every interaction or explanation is already done.
After all of that, you can publish your Dashboard and Stories by
using Tableau Server/Online or Tableau Public Voilà, you're done!
By default, numbers are Measures, and the other data types (Text,
String, Date, Geographical Boolean) are Dimensions, However,
that's not always the case. Any data type can potentially be either a
Dimension or a Measure.
Note
You can easily see whether a field is aggregated by looking at its
corresponding pill when you use it on a shelf. If it is aggregated,
the name of the field is between brackets, with the name of the
aggregation at the beginning (for example, SUM(Profit)).
As you can see, it's hard to give an exact rule to discern Measure
and Dimension. It's more a concept to understand and a useful way
to arrange the fields. Don't worry; it won't prevent you from starting to
use Tableau, but understanding the difference will help you when
you face your first challenges!
Yes, you could have believed that Dimensions are blue, and
Measures are green. It is an easy mistake to make when you start
using Tableau. Are you curious to know the real difference between
the blue and green fields? Everything is explained in the next topic.
Blue and green – Discrete and
Continuous
A field or pill in blue is Discrete. A field or pill in green is Continuous.
Dimensions and Measures can be either Continuous or Discrete.
A Discrete field displays each distinct value. Any data types can be
expressed in a discrete way. In the View, a Discrete field placed in
Rows or Columns is represented with headers.
Undo : This reverses your action. The great thing is that you
can undo an unlimited number of times, starting back from the
very beginning if you want!
Add a new Data Source : This opens the menu to choose a
new connection to a file or a server.
Duplicate Worksheet : This creates a copy of the current
Worksheet.
Clear : This removes the pills and formatting in the
Worksheet. You can use the arrow to clear only specific parts.
Swap : This replaces the pills in Rows with those in the
Columns and vice versa.
Sort ascending/descending : This automatically sorts the
selected Dimension.
Show Labels : This is a shortcut to display the labels.
Fit : This defines how the Worksheet should fit on the
screen. For Standard, the size of the cells defines the size of
the visualization. The other fitting options force the view to fit the
width, the height, or both.
Live
A Live connection creates a direct link between the Tableau data
source and your data (server or file). It means that, if the data
changes, you see the impact in Tableau directly after actualizing the
data source, or when you reopen the workbook.
The problem with a Live connection is that you are dependent on the
performance of the database. Large text files, big Excel files, or an
unoptimized database can be very slow to analyze in Tableau. Also,
if you are connected to an online database, you are dependent on
the internet connection, and you won't be able to work offline. Every
time you use a field from your data source, Tableau sends a query to
the database, meaning that if there are hundreds of Tableau users,
the database can rapidly be impacted. For these reasons, I advise
you to always work with an Extract.
Extract
When you create an Extract, Tableau copies your database into a
.hyper file on your computer. Then, the data source is no longer
linked to the database but to the .hyper file.
The first advantage of the Extract is that it's optimized for Tableau,
meaning that irrespective of the speed of your initial connection, you
will have excellent performance. Keep that in mind. If you think that
your Dashboard is slow, the first thing to check is whether you are
using an Extract or not. You are also able to work offline because the
Extract is a local copy of your database.
The only problem you may encounter is when you try to create an
Extract from a huge database. As Tableau needs to copy the data, it
could take a long time to retrieve all the rows. To deal with this, you
can use the Edit button (next to Extract) to add filters, aggregation,
and choose the schema. If you create a data source combining
multiple tables, it could be better to use the Multiple Tables schema
for better performance.
There are pros and cons of using either a Live or Extract connection.
In the end, the choice is yours, but now you can make the best
decision.
Summary
This chapter is theoretical but also necessary. The rest of the book is
filled with concrete examples based on real cases. However, like
every tool, it is important to understand the core principle to build
great visualizations. Of course, Tableau is easy, and you can start
creating visualizations without any help. However, there is nothing
worse than starting with bad habits, only to discover that you've been
doing it wrong the whole time.
How about we start using Tableau now? Isn't that why you bought
this book! The next chapter is all about showing you how to build
great things.
Chapter 3. Getting Started with
Tableau Desktop
This chapter is your first concrete introduction to Tableau Desktop.
Together, we'll connect to data, create three visualizations, and
assemble them into what will be your first Dashboard. Then, we'll
use Tableau as a data exploration tool and answer business
questions by using only the power of data visualization.
Connecting to data
Creating your first set of visualizations
Building your first Dashboard
Using Tableau Desktop for data exploration
: This allows you to undo any actions, and, good news, it's
unlimited. So, if you make a mistake, use it!
: This allows you to start from the beginning. It removes
everything in the Worksheet or Dashboard. You can start afresh
if you feel stuck somewhere.
Are you ready? If so, then double-click on the Tableau icon and let's
get started.
Connecting to data
For this first guided tutorial, we are using the iconic Tableau dataset:
Sample-Superstore. This dataset is an Excel file that contains data
about supermarket sales in the United States. It can be found in your
Tableau repository folder (which was created during the installation
of the product). This dataset is easy to understand and use dataset.
The Excel file is composed of three sheets: Orders, People, and
Returns.
So, let's connect to this dataset. When you open Tableau, click on
Microsoft Excel on the left-hand side:
Note
If you can't find the file, then you can download it from Chapter
3: Getting Started with Tableau, on my website
(https://tableau2019.ladataviz.com/) or by using this direct link:
https://ladataviz.com/wp-content/uploads/2018/09/Sample-
Superstore.xlsx. Then, select the downloaded file when
connecting from Tableau.
After selecting the file, you will automatically enter the data source
workplace. In the top-left of the screen, you will see the name of the
connection and, underneath it, you will see the three sheets in the
Excel file: Orders, People, and Returns.
For this example, we'll only use Orders; so, follow Tableau's
invitation and drag the Orders table into the middle of the page:
Once it's done, Tableau gives you a snapshot of the first 1,000 rows.
You can also see that, preceding each column's name, there is an
icon that indicates the data type (such as Number, Text, and Date)
defined by Tableau.
Bravo! You've built your first data source. In the following chapters,
we'll examine the meaning of each data type and the other options
that are available when connecting to data in detail. For the moment,
keep everything as it is and, at the bottom of the page, click on
Sheet 1.
Creating your first set of
visualizations
After clicking on Sheet 1, you will enter the Worksheet workplace.
This is where you create visualizations. Usually, one Worksheet
answers one question.
Note
Tableau's default color choice is adapted for colorblind
people. It's a bad habit to use red and green for negative
and positive values because colorblind people can't see the
difference between them. If the only way to understand
something is by its color, then make sure that everyone can
see the difference.
With a few clicks and one drag and drop later, you have just created
your first visualization in Tableau – congratulations! Are you ready for
the next one?
1. Double-click on Profit.
2. Double-click on Order date. Tableau automatically transforms
the bar into a line, as follows:
Here, you can see a line because, depending on the data type
you use, Tableau selects the best way to visualize it. Of course,
that can be changed, but it's too soon for that young Padawan!
Here, you can see the year-by-year evolution; you will notice
that the profit is growing, and that's great! But what if we want
more details?
You can now see the quarterly evolution of the profit and
discover that the fourth quarter is always the best:
4. Rename Sheet 2 as Profit Evolution. Just like we did
previously, double-click on the Worksheet name at the bottom of
the screen. Note: if you change the title which appears on top of
the visualization, it doesn't affect the name of the Worksheet.
So, how was that second experience? I'm sure you will love using
dates in Tableau! Let's finish with my favorite topic: maps!
You can visually (and easily) see that the states of New York
and California generate the most profit and Texas generates the
highest loss of money.
It's now time to build your first Dashboard. By doing so, you'll be able
to make your Worksheets communicate and enhance your analysis
capabilities.
Building your first Dashboard
Creating a new Dashboard is as simple as creating a new
Worksheet. Choose one of the following options (and find your new
favorite one!):
3. Click on any state on the map and be proud! You just created an
interactive dashboard that automatically filters a selected state.
You can also use the Ctrl (on Windows) or command (on Mac)
keys to select multiple states.
Well, why stop there? You can do the same with Sales and profit by
Sub-Category. Just click on the visualization, and then on the funnel
icon, and voilà—you can filter the Dashboard by sub-category.
The Dashboard tutorial is now over. I hope that you are as amazed
as I was the first time someone showed me how to build a
Dashboard in Tableau. We recommend that you don't skip the final
part, where we are going to use Tableau as a data exploration tool.
Using Tableau for data
exploration
Tableau can be used to answer business questions easily and
visually. In this section, we'll explore our data in order to find insights.
For this example, we will use the Sample - Superstore dataset again.
If you are starting here, please refer to the preceding section,
Connecting to data section. If you're continuing from the previous
exercise, create a new Worksheet.
You can now see all the customers who purchased a table. A
majority of clients are unprofitable, but not all.
In the top-left, you have the option to export the data in CSV format if
you want to share it.
Data connections
Join data easily
Union your data
Simple transformations
To harmonize all the different terms used between the various data
providers, we'll use the following terms through the chapter:
Data connections
In this first section, we will see the general steps to follow when you
want to connect to any kind of dataset. We'll also focus on
connecting to spatial files.
General rules
In this section, we'll see the general rules and options when
connecting to a dataset. Of course, with more than 50 different
connectors available, it's impossible to look at each in detail.
However, the goals when connecting to a dataset in Tableau are
always the same:
Tip
If there is only one table in your dataset (for example, in a .CSV),
Tableau automatically uses it.
For example, if you connect to a text file, say, a .CSV file, you can
manually specify the field separator, the text qualifier, the character
set, and the locale by using Text File Properties... as displayed
here:
When you are connected to a server such as Redshift, SQL Server,
or MySQL, you need to select the database first before getting
access to the tables:
Tip
When you connect to a server, there is a chance that the driver is
not pre-installed. If so, you have to click on Download and
install the drivers at the bottom of the connection page. You will
be redirected to Tableau's website, where you can find the driver
and download it.
With some servers, you can also create a custom SQL query if you
have special needs. To do so, double-click on New Custom SQL
following all the tables and write your query.
Note
Using a custom SQL query is slower than letting Tableau build
the query with a simple drag and drop.
Now that you know how to connect to different datasets, it's time to
discover what you can do in the Data source workplace, starting with
joins.
Join data easily
A join creates a data source with columns coming from two (or more)
tables. How can you create them? Are there risks? You'll learn
everything in this section.
The result of a join is a data source that contains the columns from
the different joined tables. As highlighted in the screenshot, you can
see that the Profit column comes from the Orders table, and the
Person column comes from the People table:
There are four different types of join. We will discover these in the
next section.
Tip
When you create a join, Tableau automatically uses the columns
that have the same names as the links.
If there are no columns sharing the same name, you have to select
the common columns manually in the Join menu that opens when
you click on the Join icon. The following screenshot illustrates how
you can choose the columns when you click on the icon:
Tip
If the values don't totally match between the common columns,
you can click on Create Join Calculation to clean the data
(you'll learn how to create a calculation in Chapter 9, An
Introduction to Calculations).
Often, you'll have one column in each table, with only some shared
values. It's up to you to decide how to deal with the values that don't
match by choosing the correct join type: Inner, Left, Right, or Full
Outer. To select a join type, click on one of the four icons in the Join
menu. Here are the differences between the different type of joins:
Left Join : Keeps all the lines from the left-hand table and
adds the information from the right table if the values match. If
the values don't match, Tableau puts null in the columns
coming from the right-hand table.
Right Join : Keeps all the lines from the right-hand table
and adds the information from the left-hand table if the values
match. If the values don't match, Tableau puts null in the
columns coming from the left-hand table.
Full Outer : Keeps all the lines from the two tables. If the
values don't match, Tableau enters null.
The data source is ready. You can test it on a worksheet and display
the profit by person as we wanted.
As you can see, joins are very powerful. Be careful; there are some
risks.
Join risks
The main risk with joins is data duplication. Rather than a theoretical
explanation, consider the following example:
Note
If you want to reproduce the example, you can download the
Data duplication example file from my website,
https://tableau2019.ladataviz.com, as discussed in Chapter 4:
Connecting to Data and Simple Transformation section, or go
direct to https://ladataviz.com/wp-content/uploads/2018/09/Data-
duplication-example.xlsx.
The Data duplication example Excel file contains two sheets: Sales
and Product.Sales contains the following data:
The total volume of sales is 300.
Now, let's join the two tables on the Product ID columns and see
what happens. Here's the result in Tableau:
As you can see, the product number 3 is duplicated. The reason for
that duplication is because there are two different products in the
Product table, with the same Product ID. The total volume of sales
here is 400, which is wrong.
When you join tables, be sure that the values you want to analyze
won't be duplicated. There are three solutions to dealing with data
duplication:
Unions are useful when you have two (or more) tables with an
identical structure (the same columns) that you want to combine to
create a unique data source.
A typical use case is when you have a dataset that contains one
table per year, and you need to compare those years. To do that, you
need to combine those different tables into a single data source. You
can, of course, spend some time copying and pasting the data into a
new table, but with Tableau and unions, you can do this in a few
clicks.
Note
To create a union, the different tables must contain the same
column names. Otherwise, Tableau will not consider them to be
identical and will create new columns.
Note
If you want to reproduce the example, you can download the
Union example file from my website,
https://tableau2019.ladataviz.com, in Chapter 4: Connect to
Data and Simple Transformation section, or use this direct link:
https://ladataviz.com/wp-content/uploads/2018/09/Union-
example.xlsx.
One named 2017, which contains the data shown in the following
screenshot:
As you can see, the two sheets share the same column name. In
Tableau, after connecting to the Excel file, there are two ways of
making a union:
The first way: Drag and drop the 2017 table, then drag and drop
the second table, 2018, just beneath the first one, where it says
Drag table to union:
The second way: Drag and drop New Union, as shown in the
following screenshot:
This opens a new window where you can drag and drop the two
tables to union them:
Note
You'll learn in Chapter 11, Advanced Data Connection, how to
use the second tab to create wildcard unions.
No matter the way you choose to do it, the result of the union is a
data source that combines the two tables. Tableau automatically
creates new columns with the name of the origin table. The following
screenshot displays the final result of the union:
To end this chapter about data connections, let's look at some of the
transformations that you can apply to the data source.
Simple transformations
Tableau is not a data preparation tool. It's always better to have a
clean file to start with. However, Tableau offers some simple
transformation tools. When you connect to a dataset, you can, for
example, use the Data Interpreter, split a column into multiple
columns, or pivot your data. Let's see a case for these
transformations.
Note
If you want to reproduce the example, you can download the
Dataset to clean file from my website,
https://tableau2019.ladataviz.com, as discussed in Chapter 4:
Connecting to Data and Simple Transformation section, or
use this direct link: https://ladataviz.com/wp-
content/uploads/2018/09/Data-duplication-example.xlsx.
Now, let's fix the first problem of this dataset with the Data
Interpreter.
Splitting a column
The second goal is to split the Country and City column into two
columns:
Pivot
A pivot consists of transforming columns into lines. In this example,
we want to pivot the four columns with the different years into two
columns: one for the name of the year and one for the value.
The transformations are complete. You have a clean and simple data
source. To really make it perfect, you can click on the icon of the
Year column and change it to Date. Here's the final result:
As you can see, you can even use Tableau to clean your data very
quickly!
Summary
We have finished our first chapter about data connections. We
looked at how to connect to different sorts of datasets and use some
features, such as join, union, and some data transformations. Later
in the book, you'll learn other useful and powerful data
transformation features.
Now that you are connected to the data, you have a data source.
You can directly use it to create visualizations, but I advise you to
spend some time customizing and preparing your data source. There
are many ways to enhance it and create something shareable, easy
to understand, and compelling for your analysis.
In the next chapter, we'll learn how to build an efficient data source.
Chapter 5. Building an Efficient
Data Source
The data source is a crucial part of Tableau. In fact, the data source
is the engine of Tableau that allows you to build visualizations. It
affects the performance, the quality of the analysis, the speed, and
more. Additionally, like any engine, it's necessary to spend some
time taking care of it.
In this chapter, you'll learn how to build the best possible engine for
your analysis. We will cover the following topics:
Note
It's essential to understand the difference between Dimensions
and Measures. Everything about these two elements is explained
in Chapter 2, The Tableau Core.
Sets and Parameters are optional, and they are created by you. Sets
are explained in the Groups, sets, and bins section, and there is a
focus on parameters in Chapter 10, Analytics and Parameters.
Most of the fields in your data source come from the dataset.
However, did you notice that some of these don't? Continue reading
to learn more about generated information.
Generated information
Every data source can have up to five generated pieces of
information:
Number of records: You can use this to find out how many
lines are analyzed.
Latitude (generated) and Longitude (generated): You'll find
this information if you have a geographical field in your data
source. They are used to create maps.
Measure Names and Measure Values: The first one contains
the name of each measure, and the second one contains the
values of each measure. They must be combined and you can
use them to display multiple Measures at the same time (this is
a focus of Chapter 6, Design Insightful Visualizations).
Now that you have a clear view of what exists in your data source,
let's take a look at the options to customize it.
Edit Data Source...: This takes you to the data source page,
where you can change your connection, add new tables, or do
some transformations.
Refresh: This refreshes your data if you are using a Live
connection.
View Data: This opens a window where you can view your raw
data, copy it, or export it in a CSV file.
Close: This removes your data source. It also removes all the
Worksheets with a visualization based on that data source.
Extract Data: This opens a new window where you can
configure the extract and create it.
Extract...: This submenu is available when you are using an
Extract and allows you to refresh it, append data from a file, or
show the history.
Edit Data Source Filters: This opens a new window where you
can add some filters (more details on this can be found in
Chapter 6, Design Insightful Visualizations.
Tip
You can also add a data source filter in the Data Source
page, in the top-right, next to the menu where you select
Live or Extract.
You don't have to remember all of these options. Bear in mind that if
you want to do something related to your data source, it's probably
one right-click away.
In the next section, we'll explore in detail how to refresh your data
and deal with the changes.
Refreshing a data source and
dealing with changes
Data lives and changes. Any analysis tool, such as Tableau, needs
to allow users to refresh data and deal with changes as easily as
possible.
Note
In this section, we won't talk about the published data source on
Tableau Server. The way in which to refresh or modify a
published data source is different and is explained in more detail
in Chapter 8, Publishing and Interacting in Tableau Server.
1. When I refresh the data source, the Region pill turns red, and in
the Datasource pane, there is an exclamation mark next to the
Region field:
Easy, isn't it? Now that you have a clear view of how to use and
refresh your data source, it's time to explore how you can customize
it.
Field customization and default
properties
Customizing the data source is the best way to make it easier to use
and share. Let's take a look at the different options available to
transform a raw data source into a customized one.
First, let's do a tour of the different field options, and then focus on
the default properties.
Hide: This hides the field but doesn't suppress it. It's a great
way to clean your data source if there are many fields that you
won't use. The option is only available if the field is never used.
You can show the hidden field by clicking on the arrow next to
Dimension and selecting Show Hidden Fields.
Delete: This suppresses custom fields (such as Bins, Sets, or
Parameters) from the data source.
Aliases...: This allows you to rename the values of a
Dimension. It opens a new window with the list of the values and
a column to specify the alias.
Create: This opens a submenu where you can create new
fields. All the different options will be examined in detail in this
book.
Convert to Discrete or Convert to Continuous: This only
applies to numbers and allows you to switch from a Continuous
field to a Discrete field or vice versa.
Convert to Dimension or Convert to Measure: This allows
you to switch from a Measure to a Dimension or vice versa. If
you try to convert anything other than a number from a
Dimension to a Measure, then an aggregation is automatically
applied.
Geographical Role: The geographical role is available on a text
dimension and allows you to specify a geographical role if
Tableau doesn't recognize it automatically.
Group by: This opens a submenu where you can select Folder
or Data Source Table. It affects the way Tableau organizes the
dimension and measure. With Data Source Table, the fields are
linked to their tables. With Folder, all the fields are mixed, and
you can create folders to group them using the next Folders…
option.
Some of these options require more explanation. So, let's start with
default properties.
Default properties
With this option, you can define the default properties for your fields.
The properties are a slightly different between Measures and
Dimensions:
Note
Hierarchies are crucial for geographical roles. If you try to build a
visualization in a city level without a hierarchy, lots of cities won't
be displayed because their names are ambiguous (that is, they
exist in multiple countries). By creating a hierarchy with a
country-level field and a region-level field, there is no more
ambiguity.
Once you click on the + icon, the child dimension is added next to
the parent, and the + icon switches to a - icon. The child can also be
a parent of another dimension, and so on.
That's enough for the theory; let's create a hierarchy and use it. You
can reproduce the following example using the Sample - Superstore
dataset:
Tip
If the order is different, then you can easily drag and drop
the field to change the order.
Are you a bit lost? Don't worry, that's normal! Let's take a look at
some examples that you can reproduce using the Sample-Superstore
dataset. We'll start with groups.
Groups
A group is a way to create a new dimension that gathers different
values of another dimension. Additionally, a group is static; this
means that you need to modify it manually.
There are two ways to create a group; first, manually, with a menu
—this is for when you know in advance how to gather the values.
Second, you can create a group visually in the View.
If you have too many values and you want to group them, you can
use the visual way. Let's demonstrate how to do this with Sample -
Superstore:
1. On a new Worksheet, double-click on Sales, and then double-
click on Sub-Category to create a simple visualization.
4. Again, you can rename the group by editing it on the Data pane,
or by right-clicking on it in the View to edit the aliases. Choose
your favorite way and rename the group Small Sales.
Sets
Sets are a Tableau element. A set is created from a Dimension.
Unlike groups, sets are dynamic. With sets, the values are either In
the set or Out.
The first tab, General, allows you to select the values that will
be in the set.
The second tab, Condition, automatically puts the values in the
set if the condition is fulfilled. For example, in the following
screenshot, the values of the Dimension will be in the set if the
Profit field is greater than zero:
The third tab, Top, puts the values in the set if they are the top
(or bottom) ones based on the limit number and a Measure. This
final option is used in the following example.
4. Click on OK. You should see a new set element in your data
source:
5. In a new Worksheet, double-click on State to show a map, and
then drag and drop Top 5 State by Profit (that is, your new set)
onto Color, as demonstrated in the following screenshot:
6. You should see a map with five states highlighted. These five
states are the five most profitable ones.
A great feature of sets is that they are dynamic. This means that, if at
the next refresh, Texas become one of the five most profitable
states, its dot will automatically be highlighted.
Sets and groups are both based on Dimensions, but their use is very
different to our last item—bins.
Bins
A bin is a Dimension. Unlike groups and sets, bins are based on a
Measure. The purpose of a bin is to group the different range of
values of a Measure inside a bin.
Bins have a special icon: .
With groups, sets, and bins, we've explored three of the five field
creation capabilities. The final two—Calculated Fields and
Parameters—are even more powerful. But that's for Chapter 9, An
Introduction to Calculations and Chapter 10, Analytics and
Parameters.
Summary
So, you've made it! The data source has no more surprises for you
(or maybe one or two that we'll see later!).
In this chapter, you learned about the purpose of a data source, its
options, how to refresh it, and how to deal with changes. Then, you
learned how to customize a data source using the default properties.
Finally, you created hierarchies, groups, sets, and bins.
Building the data source is not the most exciting thing to do if, like
me, you love visualization. However, spending some time creating a
good data source and understanding its potential is crucial if you
want to create the best analysis.
Creating visualization
Mark types
Mark properties
Using multiple measures
Filters
Pages
Options and formats
All you need to do is to simply click on it, and then you're ready. The
data source is based on the Sample -Superstore Excel file and uses
many of the features that we saw in Chapter 5, Building an Efficient
Data Source.
So, are you ready? Let's start with the basics, that is, how to build a
visualization in Tableau.
Creating visualizations
In Tableau, the only way to display a visualization is by adding fields
in shelves. The different shelves are Rows, Columns, Marks,
Filters, and Pages. When you use a field on a shelf, it becomes a
pill.
The first method is one that you've used the most frequently in this
book, that is, double-click. A simple double-click on a field
automatically puts it in a shelf.
Double-click
When you double-click on a field in your data source, it is
automatically added to a shelf in the Worksheet. Tableau decides
where the field should be, based on data visualization best
practices.
Show Me
Show Me is a special menu that can be accessed on the top-right
If no fields are selected in your data source, then all the options are
grayed out. If you choose one or multiple fields, then you'll see that
some options are now available. One of them will have an orange
outline—this is the one that Tableau recommends that you select. To
use an option, simply click on it.
Show Me is useful for when you first start in Tableau, and when you
have no idea how to visualize your data. You can click on the various
options to see different results and select the one that you prefer.
After some time, you'll use Show Me very rarely. That's because,
even if you have many possibilities, you are limited by how Tableau
arranges the pill.
Tip
Show Me is quite a powerful option to create box-and-whisker
and bullet graphs. Without Show Me, these two visualizations will
require lots of steps if you were to create them manually.
The automatic ways of building visualizations are fast and easy, but
they are limiting. This is why you need to understand where to put
the fields manually in order to create what you want.
That's it! With this, you can create every possible type of
visualization in Tableau—there is no hidden menu and no secret
page.
In the next section, you'll learn about the different Mark type with an
example for each.
The Mark type
The menu, highlighted in the following screenshot, allows you to
choose the Mark type:
Of course, you can change the Mark type and use any type you
want. For example, if you put Order Date in Columns and Profit in
Rows, Tableau displays a Line chart because it's the best way to
visualize an evolution. However, by using the Marks shelf, you can
select the one you prefer (for example, a bar chart, an area chart, or
whatever you think is best).
Let's explore what you can build with the different Mark type. For
almost every type, there is an example that you can reproduce with
Sample - Superstore.
Note
You can also download the Mark Types ZIP file from my website
(https://tableau2019.ladataviz.com) in Chapter 6, Design
Insightful Visualizations section, or click on this direct link:
http://ladataviz.com/wp-content/uploads/2019/05/Mark-Types.zip.
When you unzip the file, you'll find a Tableau Package Workbook
with an example of each Mark type.
Let's start with our Mark type tour with bar charts:
Maps are customizable. When you click on the Map top menu,
you'll find options to change the background, use a custom
geocoding, manually edit the locations, add the legend.
However, the two most important options are:
Map layers: Opens a new pane on the left where you can
change the Style of the map, the Washout, and add or
remove multiple Layers such as Coastline, Cities,
Country Borders, Building footprints, and so on.
Map options: Opens a new menu on the map where you
can customize the options to search and zoom, but also
change the units and remove the toolbar.
Pie ( ): When you select Pie in the Mark type selector, a new
property becomes available: angle. To create a pie chart, put a
Dimension in Color and a Measure in the Angle property. A pie
chart works in one specific situation when you want to compare
the proportion between two values. With more than two values,
a bar chart is always more efficient. Here's an example of a
visualization, representing the unranked sales by category with
a pie chart and a bar chart:
If you still want to create a pie chart, at least don't forget to sort
the values as in the following example:
Gantt Bar ( ): This is generally used to create a Gantt
chart, and this visualization is helpful when you manage projects
over time or if you want to create a timeline. A Gantt Bar uses a
Continuous field (generally a date) in Rows or Columns to set
the initial position and another Continuous field in Size. Here is
an example of using a Gantt Bar for a resume:
Note
The preceding example is a Stream Graph created by
Ludovic Tavernier. You can learn how to build a Stream
Graph with this tutorial:
https://greatified.com/2018/09/17/how-to-build-a-stream-
graph-in-tableau-software/
Any unaggregated field, returning more than one value that is used
in a Mark property splits the number of Marks (except for the Tooltip
property).
Let's examine each property with the different options you have to
make better visualizations. For each property, you'll find an example
that you can reproduce with Sample – Superstore and World
Indicators.
Note
You can also download the Mark Properties ZIP file from my
website (https://tableau2019.ladataviz.com) in Chapter 6, Design
Insightful Visualizations, or click on this direct link:
http://ladataviz.com/wp-content/uploads/2019/05/Mark-
Properties.zip. When you unzip the file, you'll find a Tableau
Package Workbook with an example of each Mark type.
Color
Color is represented by the following icon: . It is probably the
most useful and widely used property. It can be used to change the
color of all the Marks, slice a Mark if you use a Dimension, or display
another insight if you use a Measure.
If you don't place any fields on the Color property, then clicking on
the Color button opens a menu where you can set the color of the
Marks, change the opacity, and add borders and a halo. You can
also click on More colors... to open a menu where you can choose
the exact color of your choice. If you drag and drop a field on Color,
Tableau uses colors to add a new layer of information. The behavior
is different between a Continuous field and a Discrete field.
If you use a Discrete field (in blue and usually a Dimension), each
value of the field has a distinct color. Tableau uses a default set of
colors, but you can edit them by clicking on the Color button and
then on Edit Colors.
A new window opens where you can choose between different color
palettes and assign a specific color to each value. Here's an
example of a Discrete field on Color, with the Edit Colors window:
Note
It's possible to add a custom color palette by editing
Preference.tps in your Tableau repository, as explained in the
Tableau documentation at
https://onlinehelp.tableau.com/current/pro/desktop/en-
us/formatting_create_custom_colors.html.
Using this menu, you have many options to configure your palette.
You can set the number of steps, reverse the palette and, after
clicking on the Advanced button, set the Start, Middle, and Center of
the palette. Again, if you click on a color box, it opens an advanced
menu to choose the exact color of your choice.
Note
When using the Density Mark type, you can modify the Intensity
value by clicking on Color.
Size
If you don't put any fields on the Size property, then clicking on the
Size button opens a small menu where you can change the size of
the Marks. If you put a field on the Size property, the values of the
field will be represented with different sizes. If you use a Discrete
field, each value has a specific size. If you use a Continuous field,
Tableau uses a scale from the minimum value to the maximum
value.
Label (text)
If you use the text Mark type, this property is named Text. If you put
a Measure in this property, the aggregated value is displayed. If you
put a Dimension in this property, then all the different values are
displayed, multiplying the number of Marks.
If you click on the Text button, you'll find an option to change the
alignment and, if you click on the box with the three dots (...),
Tableau opens the Edit Label window. This window is a text editor
where you can modify the font, the size, the color, and write any text
you want. Here's an example of Sales and Quantity in Text with the
Edit Label window and the result:
If you use any Mark type other than text, then this property is named
Label and you can use it to add a label to the current Marks (on a
bar chart or a line chart, for example). The value of a Measure will be
displayed in the visualization; a Dimension will split the number of
Marks. When you click on the Label button, you'll find many options:
Detail
Tooltip is the next property, and it's the only one that doesn't split the
Marks.
Tooltip
The tooltip is displayed when you hover over a Mark. Any field that
you drop on Tooltip is added to the tooltip box. The fields in the
tooltip are always aggregated. For Dimensions, Tableau uses a
special aggregation, ATTR, to display them. This aggregation returns
the value if it's unique, otherwise, it shows *. Clicking on the Tooltip
button opens a window where you can edit the text and change a
few options.
You can also add other Worksheets to the tooltip property. This
functionality is called Viz in Tooltip. In the Tooltip editing window, in
the top-left corner, you have the option to insert additional
information but also other sheets. To learn more about this feature,
you can visit https://onlinehelp.tableau.com/current/pro/desktop/en-
us/viz_in_tooltip.htm.
Shape
However, the really interesting aspect of shapes is that you can add
custom shapes. You can do this as follows:
Path
This property also allows you to choose the order to connect the
Marks. Usually, you only use it if, in your data, there is a special
order to connect the Marks to create a specific visualization as for
polygons.
The next and final property only exists for pie charts.
Angle
You now have all the knowledge you need to build almost every
visualization in Tableau, but to truly unleash Tableau's potential, you
need to learn what you can do when using multiple Measures at the
same time.
Using multiple Measures
Until now, you've always used only one Continuous field (usually a
Measure) at a time on the Rows or Columns shelf. Let's discover what
happens when you use more than one.
Tip
If you change the Mark type or properties for All, all the Marks are
affected.
Tip
Keep this visualization for the next section!
As you can see, you can edit the different Marks shelves
independently. But can we do more than that? Well, yes! Let's discuss
dual axis and Measure values/names.
Dual Axis
When you want to combine two Continuous fields, it is possible to
create a dual axis. With a dual axis, there is one axis on the left, one
on the right, and the Marks are superimposed. To create a dual axis,
right-click on the second Continuous field and click on Dual Axis, as
shown in the following screenshot:
When using a dual axis, the pills are merged. If the Mark type is set to
Automatic, they might change when using dual axis. However, it's still
possible to edit them individually by using the different Marks shelves.
By default, Tableau puts Measure Names in Color to distinguish the
two fields. You can, of course, modify the color or remove it.
Tip
Dual Axis allows you to build new types of visualization, such as
the following:
With dual axis, the range of the two different axes can be different. For
example, in the preceding example, we compared the Profit in dollars
and the Profit Ratio in percentages. However, if you're comparing
values with a similar scale (such as sales from the current year and
sales from the last year), the axes need to be in the same range. To do
that, right-click on an axis and select Synchronize Axis.
But what if you need to compare more than two Measures? Triple axis
doesn't exist, sorry! To do that, you'll use Measure Names and
Measure Values.
When you use Measure values in View, Tableau displays the Measure
values shelf where you can add as many Measures as you want.
Tip
Another way to add a new Measure is by editing the Measure
Names filter and selecting the Measure you want.
5. In contrast to Dual Axis, there is only one axis here, meaning that
you can only have one scale. If the different Measures have
significant different scales, it may be hard to see the variation. In
the following screenshot, you can see that the Quantity values
are too small, compared to Sales and Profit, to be readable:
Another significant difference with a dual axis is that there is only one
Marks shelf. That's because there is only one Continuous Field,
Measure Values. This means that you cannot control the Mark type or
properties for each Measure.
With Dual Axis, you can only combine two Continuous fields, but they
can have different Mark types, properties, and axis ranges. With
Measure Values and Measure Names, you can use as many
Measures as you want, but only with one axis and one Marks shelf.
The choice is yours, so use the best option!
All Using Related Data Sources: Only useful when you have
multiple data sources in your Workbook. This option allows you
to filter on multiple data sources at the same time.
All Using This Data Source: This option automatically adds the
filter to every Worksheet that uses the current data source.
Selected Worksheets...: This option opens a new window
where you can manually select the different Worksheets where
the filter should be applied.
Only This Worksheet: The filter is only applied to the current
Worksheet (by default).
Note
If the field you want to filter is a Measure, a new window opens,
asking you to choose an aggregation or All values (no
aggregation).
Let's discover what happens when you want to filter a Discrete field.
General: You can select the values you want to keep (or to
exclude if you check the Exclude box). At the bottom, there are
buttons to select All the values or None; at the top, you can
choose between the following:
Select from list: This is the default option, where you can
select each item.
Custom value list: This is where you can enter a list of
custom values to keep or exclude.
Use all: To keep all the values.
Wildcard: You can enter some text so that the filter keeps (or
excludes) the values that Contains, Starts with, Ends with, or
Exactly matches your text.
Condition: You can specify a condition based on a field or
formula. Only the values that fulfill the condition are kept.
Top: This filter will only keep the values on top (or at the bottom)
based on a value. There are four main drop-down menus to
configure the filter:
Quick filters
With a right-click on a pill in the Filters shelf, you can find the Show
Filter option. It's the first option in this book that adds interactivity in
Tableau. Clicking on Show Filter opens the quick filter card on the
Worksheet.
Tip
You can automatically add a quick filter by right-clicking on a field
in the Data pane or a pill in View and selecting Show Filter.
The quick filter allows you, and the people who interact with the
visualization, to filter the values without having to open a menu.
Here's an example of a quick filter on Region, where only Central
and East are selected:
There are many interesting options when you click on the arrow in
the top-right of the quick filter card:
Tip
A quick filter based on a Continuous field is always represented
by a slider. You can customize it to display the Readouts, the
Slider, and the Null controls. You can also visually choose
between the Range of Values, At Least, or At Most.
Now that you know how to add filters and play with quick filters, let's
discuss the hierarchies between the filters.
Filter hierarchy
All Dimension filters are applied at the same time. There is, by
default, no hierarchy between them, but you can add one with
context.
Context
Using context is a way to add a hierarchy between the different
Dimension filters. Consider the following example using Sample -
Superstore:
1. Create a visualization with City in Rows and Sales in Columns,
and use the button in the toolbar to sort the values.
2. Add City to the Filters shelf and, on the Top tab, select Top 5
by Sales, as shown in the following screenshot:
3. Add a quick filter to State. You can do this very easily with a
right-click on the State field in the Data pane and selecting
Show Filter.
4. In the quick filter, select only California. Tableau combines the
two filters and looks for cities that are both in the global top five
and in California. Tableau returns only two cities, Los Angeles
and San Francisco. This is not what we want:
5. Right-click on the State pill on the Filters shelf and select Add
to Context. The pill automatically turns gray and goes above
the City pill. The result is as expected; you see the top five cities
in California:
You can now select any state from the quick filter and see the top
five cities in that state. Thanks to context, Tableau first filters the
states and then keeps the top five cities.
Note
Pages are very rarely used because animations don't work when
you publish your work. For this reason, we won't go into too
much detail about this functionality.
Pages act as a single value filter. Each value is a page, and you can
click on the Play button to go through all the pages and create an
animation.
There are a few things to bear in mind if you want to use pages, as
follows:
The first line displays the current page, and the arrows allow you
to go to the next or previous value.
The slider gives you an idea of how many values there are, and
you can move the cursor to go through them.
On the third line, on the left-hand side, you can see the
animation buttons. You can use them to automatically go
through all the pages or to stop the animation. On the same line,
on the right-hand side, you can see the speed buttons. They
define how fast Tableau changes the page.
At the bottom, you can decide whether to show the history.
In this menu, you can configure how to display the Marks from the
preceding pages. Let's briefly explore the different options if you
decide to show the history:
In the first part, you specify which Marks should display the
history (for example, only the one you selected or all).
In the second part, you define how many historical Marks to
show (for example, all or the last number of your choice).
The third part allows you to choose between showing the
historical Marks, only the trails (that is, the path from the prior
point to the next), or both.
Finally, in the two other parts, you can customize the format of
the historical Marks or the trails.
Tip
For more example about animations and pages, visit
https://onlinehelp.tableau.com/current/pro/desktop/en-
us/buildmanual_shelves.htm#pages-shelf.
We have seen all the different shelves available in Tableau. To
conclude this chapter, let's take a look at the various options that are
available in a Worksheet.
Worksheet options and formats
There are lots of options available in a Worksheet, and you can find
them in many different places. The three most usual places to
find options are as follows:
Pill options
Many options are available by right-clicking on a pill. As always,
there are some differences between Continuous and Discrete pills.
Filter...: A shortcut to put the current pill in the Filters shelf and
open the Edit Filter window.
Show Filter: This automatically puts the pill in the Filters shelf
and displays the quick filter (it doesn't open the menu).
Show Highlighter (only for Discrete pills): This opens the
Highlighter card, which allows you to highlight a specific value,
as shown in the following screenshot:
Sort (only for Discrete pills): This opens the Sort window, where
you can change the sort order of the values.
Tip
By right-clicking in the bottom of the Worksheet tab, you can
perform the same action.
The final sets of options are available with a right-click on the View.
View options
In case you forgot, the part that displays the visualization and
contains the headers, axes, and Marks is called the View. When you
right-click on the different elements of the View, you may find a
number of attractive options.
As before, you'll find here a list and description of the most useful
options:
Keep Only and Exclude are options that are available with a
simple left-click on a Mark. Keep Only automatically adds a
filter that includes only the value of the selected Mark. Exclude
also adds a filter, but this time, the filter excludes the selected
value. Both options can be handy for focusing on the interesting
values and eliminating mistakes in your data.
If you right-click on an axis, you can edit it. Tableau opens the Edit
Axis window, where you can configure many aspects of the axis,
such as the range, the scale, the titles, and the tick Marks.
Format
When you select the Format options, Tableau opens a whole new
pane on the left-hand side rather than the Data pane. The formatting
pane is highlighted in the following screenshot:
There are five different icons for the various formatting options
available. For each option, the formatting can be applied to the
Worksheet, the Rows, or the Columns, and to different parts of the
View (Worksheet, Pane, Header, Title, and so on). The five
formatting options allow you to do the following:
Tip
There is also an entire Format menu on top, where you can
change the format of almost everything in Tableau. In this menu,
you can open the Format Workbook pane, which is very useful
for configuring the format of the entire Workbook in a few clicks.
In this chapter, you also learned how to use filters to focus on the
right data. Then, we looked at pages and how to add interactivity to
Tableau! To finish, we explored the most useful options, where to find
them, and how to use them.
This chapter is the longest and most important one in the book. It's
the core of Tableau and where you'll spend a major part of your time.
I'm sure you'll enjoy building many different visualizations to find the
ones that make your data shine.
Once you find the best visualizations to understand your data and
answer your questions, it's time to assemble them in a Dashboard.
You have probably already guessed where this is going - the next
chapter is about building Dashboards, how to create them and make
them interactive, and, of course, this will be a chapter containing all
the best advice and lots of examples.
Chapter 7. Powerful
Dashboards, Stories, and
Actions
A Dashboard is a composition of multiple Worksheets, and objects
such as Container, Text, Image, and Actions to create interactivity.
The goal of a Dashboard is to provide insights on a regular basis.
The look and feel don’t change, just the data. In this chapter, you’ll
learn how to create a Dashboard, you’ll understand the different
objects available, and will be able to choose between the different
Actions. A Story is a composition of Worksheets and Dashboards.
You’ll learn how to create and use a Story to do a presentation, or to
tell an amazing story you found in your data.
Dashboard basics
Dashboard objects
Dashboard actions
Creating a Story
Dashboard basics
If a Worksheet is one idea, a Dashboard is a way to combine
multiple such ideas. With a Dashboard, you can create interaction
between the Worksheets, and add pictures, web pages, and other
objects to create a unique page that will answer all your questions.
To add a new Dashboard, you can either click on the icon at the
bottom-right,
, click on New Dashboard from the Dashboard top menu, or use
the New Dashboard button in the toolbar.
Tip
You can't see the Data pane when creating a Dashboard. If you
need to modify your data source, you have to go to a Worksheet.
Tip
Usually, the purpose of a Worksheet is to end up in a Dashboard.
You can hide all the Worksheets that are in a Dashboard by
using the Hide All Sheets option when you right-click on a
Dashboard tab. You can, of course, unhide them as easily.
: The last one, the small arrow, opens the options for the
selection Worksheet. Many of those options can be found
elsewhere among the Worksheets or Dashboard options. The
most useful options are probably legends, Filters, and
parameters, which allow you to quickly add the Legends, Filters,
or Parameters that exist on the Worksheet to the Dashboard.
Speaking of options, let's discover what you can do with the pane on
the left.
Tip
Automatic may seem to be the best option, but it is often the
worst. The ratio between height and width is critical in data
visualization, and with automatic sizing, you have no control. A
bad ratio can lead your Dashboard to look very bad, even
unusable. My advice is to go with Fixed size when you want
absolute power over the looks of your visualization, or choose
Range to allow resizing for when the Dashboard will be
displayed on many different screen sizes.
On the Dashboard pane, the part you'll use the most is sheets.
Here, you'll find all the different Worksheets in your workbook, as
long as they are not hidden (you understand, now, why giving a
meaningful name to each of them is crucial).
Beneath the list of Worksheets, you can find the different objects that
you can add to your Dashboard, and the option to choose between
Tiled and Floating. All these essential functionalities will be seen in
detail in this chapter.
To finish, at the very bottom, you can use the checkbox to choose
whether to show the Dashboard title. Let's continue on to the Layout
pane.
Tiled
Tiled is the default way to add elements on a Dashboard. At the
beginning, it seems perfect: the grey part where you're dragging an
element helps you to see where it'll go; the different items are
distributed evenly; and it stays in place when you resize the
Dashboard. But rapidly, you'll notice the limits of that technique.
You have low control over the size and position of the elements.
Achieving a pixel-perfect Dashboard is a big fight (maybe a little
less now that the grid exists).
You cannot add a border or a background that outlines multiple
items.
You cannot move multiple items at the same time.
Floating
The Floating Layout often became the default layout for people who
had terrible experiences with Tiled. With this layout, you can drag
and drop any element wherever you want. With the Layout pane,
you can define the exact position and size of every item. Among the
options (with the small descending arrow), you can also specify the
Floating order to move the element to the back or the front.
The Floating Layout seems to be far better than Tiled, but it's more
time-consuming to define the position and size of everything on the
Dashboard. Also, the main problem is the time you have to spend if
you need to make changes in your Dashboard. Let's say that you
want to add a new Worksheet above all the existing ones—you'll
need to reset the position and size of all the existing elements on
your Dashboard, one by one. That's also the case when you resize
the Dashboard.
Since Tableau 2019.1, every Dashboard starts with two layouts: the
default layout that you use to build your Dashboard, and an
automatic Phone layout generated by Tableau.
On this toolbar, you can select the type of device, the model, and the
orientation of the layout. When you're done, click on the last button
to add the layout and start personalizing it. You can add two
additional layouts: Desktop and Tablet.
On the Dashboard pane on the left, you can click on the different
layouts to switch from one to the other and configure them. You can
specify the fitting and the height of the layout. You can also see the
different items that exists in the Default layout and choose to keep
or remove them (they are only removed from the selected layout and
not from the other layouts). It's also possible to add other objects,
such as text, that will be visible only for the selected layout.
Since Tableau Desktop 2019.1, you have two options for the Phone
layout: either use the automatic layout generated by Tableau, or edit
it manually.
Dashboard options
In the top menu, between Worksheet and Story, you can find the
different Dashboard options.
The Grid is a great feature if, like me, you like when everything is
properly aligned. You can decide whether to show the Grid, and how
to configure its size.
Tip
To show or hide the Grid, you can also press the G key on your
keyboard!
All the other options are either straightforward to understand and use
(such as Export Image...) or just duplicates of options in different
places (such as Device Layouts, Show Title, and Auto Update).
That's it for the basics, but you still have many things to learn about
Dashboards! A major part of building a Dashboard is adding objects.
Dashboard objects
Most of the objects are very simple. Drag and drop them on the
Dashboard to use them. Here's a list of existing objects:
Note
If you want to learn how to build your own extensions, you'll
find tutorials, samples, and clear explanations on the
Tableau Extensions GitHub page, at
https://tableau.github.io/extensions-api.
Each extension has its own permissions and configuration window.
As you can see, most of the objects are easy to understand and use.
However, there are two other objects, the containers, that need a bit
more explanation.
Containers
The purpose of a Container is to group elements inside a shared
space and allow you to have better control over those elements
inside. They can be horizontal or vertical. The following screenshots
are an example of three worksheets in a horizontal container:
Tip
You can recognize a container by the blue dotted lines between
the Worksheets.
When you add a Container, it'll be empty. Then, you can drag and
drop Worksheets or objects inside it. You can also add another
Container inside a Container, and so on; it's a good practice that I
advise you to adopt. The first thing you do when you start to build a
Dashboard should be adding a container.
If you have Containers inside Containers, you can select the parent
Container by clicking on Select Layout Container among the
options (available with a click on the small arrow from a select
element), or you can also simply double-click on the grip part of
every element, as highlighted in the following screenshot:
Tip
Another way to select a specific Container is to use the Item
hierarchy in the Layout pane.
So, why exactly are Containers a good solution? First, every element
inside a Container has two great options:
The second reason is that among the Container options, you'll find
Distribute Evenly, which you can see in the following screenshot:
If you select this option, every element inside the Container will have
the same width (or height, depending on the Container type) and will
resize if you add another item and change the size of the
Dashboard.
With Containers, you can set the size of any element to the last
pixels or distribute them evenly. By adding Containers into
Containers, you can use all those features at the same time.
Hover: Just put your mouse over a mark, and the action is
triggered.
Select: The action is triggered when you click on a mark.
Menu: A link is added at the bottom of the tooltip when clicking
on a mark, but the action is only triggered if you click on that
link. The text of the link can be customized.
Let's now look at the different types of Actions, starting with the most
common one: Filter.
Leave the filter: When you clear the selection, the Filter stays
as it is. It's the default option for the Menu trigger.
Show all values: When you clear the selection, you'll see all the
values. It's the default option for the Select or Hover trigger.
Exclude all values: When you clear the selection, the target
Worksheets turn blank, as all values have been excluded. It's
only when you trigger the Action again that the selected data is
included.
Tip
The Target Worksheets can be in another Dashboard. Then,
when you trigger the Action, you'll be automatically redirected to
that Dashboard.
The next Action is Highlight. It's a great way to help the users
understand the related fields in your Dashboard.
As for the Action filter, you can specify in the configuration window
which fields should be highlighted.
Note
Contrary to the Action filter, the fields that you want to highlight
need to exist in both the Source and the Target Worksheets (no
matter where; it can be in the Detail Mark property, for example).
In the configuration window, you have to specify the URL of the web
page you want to reach. You can write any URL you want, and,
thanks to the small arrow at the end, add fields from the Worksheet.
In the example, we wrote https://en.wikipedia.org/wiki/ and we added
the State field at the end. You can use the Test Link button to verify
that your URL is working.
Since version 2019.2, you have the ability to choose how to open the
URL target:
New Browser Tab: Always opens the link in a new browser tab,
even if a Web Page object exists in the Dashboard.
Web Page Object: Opens the URL in a Web Page object in
your Dashboard. You can even have multiple Web Page objects
in you Dashboard with multiple URL actions targeting each Web
Page object distinctly.
Browser Tab if No Web Page Objects Exists: The default
option – it opens the URL in a browser tab if there is no Web
Page object.
Tip
You'll learn more about parameters in Chapter 10, Analytics and
Parameters.
In the next example, you can see the usage of the Change Set…
action to drill down from the Furniture category to display its sub-
categories:
When you create a Change Set Values… action, in the
configuration window, you can specify source Worksheets, the
trigger, the data source, and the set that will be impacted by the
action. As a set is based on a field, this field needs to be on a
Worksheet.
As for the action filter, you can dictate the behavior when clearing the
action. There are three different behaviors:
Keep set value: When you clear the selection, the current
values of the set stay as selected.
Add all values to set: When you clear the selection, all the
values are added to the set.
Remove all values from set: When you clear the selection, all
the values will be removed out of the set.
That's it for Actions. In the next section, we'll see how to create a
Story.
Creating a story
Stories are designed for data storytelling. You can control what the
users will discover, in which order, and add annotations and
explanations throughout the Story.
Tip
Do not create a Story just to use it as a menu to navigate around
the Dashboard. For that, you have the button object and the Go
to Sheet… action.
The Story workplace is quite similar to the Dashboard one. You'll find
a central blank part where you can drop Worksheets and
Dashboards. Again, modifying the Dashboards or Worksheets will
impact the Story. On the left pane, you can also find two tabs: Story
and Layout.
When you hover over a Story point, you'll see these four icons:
Each icon has a unique function:
Now that we've seen the basics, let's start to create a Story.
Building a story
You begin to build a Story in a Story point. Each Story point contains
one Worksheet or one Dashboard. You can add them with a simple
drag-and-drop to the central blank area (or use a double-click).
Then, you can create a new blank Story point and add another Sheet
or duplicate the existing one to Highlight or Filter a specific element.
The Story keeps the selection, Highlights, and Filter added on each
Story point.
When you unzip the file, you'll find a Tableau Package Workbook
that contains a Dashboard you already built earlier (with a Filter
action when you click on the map):
Let's start building our first story:
1. The Save as New button takes the current state of the Story
point and copies it into a new Story point, while reverting the
changes of the existing one. You can change the caption of the
new Story point to California is the most profitable State.
Here's the final look of your Story, with three Story points:
Now that you know how to build a Story, let's see how to customize
it.
On the left, at the bottom of the Story pane, you'll find three options:
On the Layout pane, you can change the style of the Story navigator.
There are four different styles: Caption boxes, Numbers, Dots, or
Arrows only. On the same pane, you can also show or hide the
arrows. Finally, on the Story top menu, you'll find similar options as
for Dashboard: Format, Copy Image, Export Image, and Clear.
The next chapter is about sharing; we'll look at how to publish your
work to make it globally accessible. Ready to go online?
Chapter 8. Publishing and
Interacting in Tableau Server
It's time to share your work! This chapter is the culmination of
everything you've learned since the beginning of the book. It's also
the first chapter where you'll use a tool other than Tableau Desktop:
Tableau Server/Online.
Note
As Tableau Server and Tableau Online are almost the same
product (you can learn more about this in Chapter 2, The Tableau
Core), we will use the name Tableau Server for both products
throughout this book.
Note
This book doesn't cover Tableau Server's installation and
configuration. This is a technical aspect that requires you to work
with your IT team. You can find all the useful information and
guidance for installation on the Tableau website:
https://onlinehelp.tableau.com/current/guides/everybody-
install/en-us/everybody_admin_intro.htm.
To reproduce the example in this chapter, you will need access to
Tableau Server. Additionally, we are going to use a Tableau
Workbook example: World Indicators. You can find it on the start
page when you open Tableau, as highlighted in the following
screenshot:
An introduction to Tableau
Server
Let's start with the basics. In this section, we will explore what
Tableau Server is and look at its contents.
Basics
Tableau Server is an online tool made for sharing workbooks and
data source. Usually, only a few people use Tableau Desktop to build
data source and workbooks, which they then publish on Tableau
Server, making them available to many users using Tableau Server
on the web.
Note
For Tableau 2019.2, Tableau has changed the design and
browsing experience of Tableau Server. We'll focus on this new
version in this chapter.
Note
Tableau Server can have multiple sites; each site is a different
environment with different users, groups, and content.
Once you're logged in, you can access the Home page of Tableau
Server, as shown in the following screenshot:
At the top of the page, you have a search bar to find contents, help
and notification icons, and the icon to access your profile. In the left-
hand menu, you'll always find the following:
Let's explore the different content you can find on Tableau Server.
Projects: This is like a folder; you can only create new projects
on the web. A project can contain every type of content, and
even other projects. The top-level projects are those in the root
of Tableau Server.
Workbooks: These are either created directly on Tableau
Server or they are published from Tableau Desktop. Each
workbook is composed of one or multiple views.
Views: This refers to all the visible Worksheets, dashboards,
and stories in the workbooks.
Data sources: This is created on Tableau Desktop and is
published here. You can use data source to build new analyses
directly on the web or from Tableau Desktop. You can also open
Ask Data to use natural language to query your data source.
Flows: This is created with Tableau Prep; you can publish the
flow to run them from the web. Thank to the Tableau Prep
Conductor add-on. You can learn more about Tableau Prep and
Flows here: https://www.tableau.com/products/prep
Let's take a look at how to publish Data Source and Workbooks from
Tableau Desktop.
Publishing and modifying the
content
On Tableau Desktop, you can connect to Tableau Server with from
the Sign In... option in the Server top menu. When signed in, you
are able to publish data source and workbooks.
If this list doesn't convince you, I don't know what could! If you plan
to work in a professional environment with Tableau, publishing a data
source is crucial.
Note
For Tableau Online users, you have to use Tableau Bridge to
connect on-premises data to Tableau Online. Learn more about
Tableau Bridge here: https://www.tableau.com/en-
gb/products/tableau-bridge
Publishing a data source is easy: in the Data pane (in the Worksheet
workplace), right-click on the data source name and click on the
Publish to Server option. You can also find this option from the
Data menu in the top of the page. When you click on this option, a
new window opens to configure the published data source. In this
window, you can do the following:
Only you and the users of your choice can modify a published data
source, making it secure and preventing anyone from making
unwanted changes. Unfortunately, this security makes it a bit more
complicated to modify a data source; let's discover how to do it next.
Publishing a workbook
Publishing a workbook is the best way to share your insights. You
can control who has access to your visualizations, and Tableau
Server users have many ways of interacting with it. Again, publishing
a workbook is straightforward; in the Server top menu, you have the
Publish Workbook... option, as follows:
Again, as an exercise and for the rest of this chapter, you can
publish the World Indicators Workbook in the World Indicators
Tutorial Project:
To sum up, publishing your work on Tableau Server is essential
when working in an organization. Publishing your Workbook makes
your findings and insights available to other users. Sharing your Data
Source makes new analysis easier and allows other users to create
their own Dashboards without having to rebuild the wheel each time.
It also adds security and control over the different fields and
harmonizes the definition of the calculations.
In the next section, you'll discover all the different ways of interacting
with published content.
Interacting with published
content
Publishing your workbooks and data source presents many more
advantages than just sharing them. Tableau Server has many
awesome functionalities that are only available online.
Let's start by discovering all the options you have when you interact
with a data source. First, click on the World Indicators data source!
The first tab is, undoubtedly, the biggest revolution and most
important new feature of Tableau Server 2019.1: Ask Data. Ask
Data allows you to use natural language to query a data source and
create a visualization by just asking Tableau, in English, what you
want to see.
Ask Data
Ask Data is the first view that opens when you click on a Data
Source. This tool allows you to query any Data Source using the
English language.
When Ask Data first opens, Tableau Server starts to analyze the
data source to enrich some fields. On the left-hand side, you'll find
something similar to the Data pane in Tableau Desktop, and in the
middle, a simple search bar with some suggestions:
To be honest, the suggestions in the preceding example are quite
bad, so let's try something on our own! In the search bar, type in
average CO2 Emissions by Country. Ask Data opens a new
dedicated tab in your browser and, more importantly, displays
something similar to the following screenshot:
Tip
From Tableau Server 2019.2 you can create multiple Worksheets
in the Ask Data window!
Speaking of the Data pane on the left-hand side, when you hover
over a field, a nice tooltip gives you some quick insights about the
number of values, their distribution, and even the calculation if it's a
calculated field. But wait, there is more! If you click on the small
arrow next to a field, you can use the Edit synonyms option. When
you add a synonym to a field, you are able to use that synonym in
your sentence to create the visualization.
At the top of the page, you can see that the search bar has
expanded and suggests that you can adjust the question or use the
Clear All button to start over. Let's try to add more insights to this
map by typing average GPD into the textbox:
Tip
You could also use the selector on the right-hand side of the
visualization to change the Mark type.
If you are satisfied with the visualization but you want to quickly
change a Measure or a Dimension, you can click on the different
fields in the query box to open a menu allowing you to choose a
different field and its aggregation. For example, if you click on by
Country, you can quickly change it to display the Region instead, as
demonstrated in the following screenshot:
When you're done, if you want to save your work, then you can use
the Save button in the toolbar or close the tab if you don't. Now, let's
explore how to interact with your workbooks!
On top, there is the navigation bar with the current path to the view
and some icons allowing you to open the device layout preview, see
the data sources, and the other default options (such as search,
favorites, help, and notifications):
We'll focus more on the five other features. For each feature, you
can test and reproduce the examples using the Tourism View of the
World Indicators workbook published earlier, which is highlighted
here:
The Tourism View of the World Indicators workbook
Custom views
A custom view is a way of saving the current state of a visualization
to reopen it later. Imagine that, in a dashboard, you need to select
different values in many different filters to focus the visualization on
what really interests you. Without custom views, you'll have to apply
the different filters each time you open the workbook.
With custom views, you can save the state where all the filters are
applied, and reopen the dashboard on that state whenever you want,
with all the filters applied at once.
Tip
The default view is Original. It's the view as the author of the
workbook published it.
To add a custom view, click on the View: Original button to open the
configuration window. This window offers different interesting
options, including the following:
1. Use the quick filters to start the Year Range filter in 2005 and
select Europe in the region.
2. Click on View: Original.
3. In the configuration window, name your custom view Europe,
starting in 2005, make it your default, and then click on Save.
The configuration window should look like the following
screenshot:
This option is a time saver when you have to apply many different
filters, or if a team only focuses on a subset of the data. The second
feature is probably just as important and useful!
Alert
With alerts, Tableau sends you an email when a condition is fulfilled
in your View after a refresh. For example, if you have a visualization
with daily sales, you can configure an alert to receive an email when
the sales are above or below a certain amount. An alert is a great
way to allow you to do something other than checking your
dashboard every day on Tableau Server. You can set an alert on any
visualization as long as it has an axis.
Tip
Make sure that the SMTP server is configured and that you have
specified a correct email address.
In the right-hand pane, you'll find all the visible alerts that exist for
the current View. You have the ability to subscribe to an existing alert
with the Add me button. If you created the alert, you'll be able to
edit, delete, or change the owner of this alert by using the Actions
menu:
As you can see, the alert feature is very useful, and probably just as
much as the next one: subscribe!
Subscribe
If you subscribe to a view or workbook, you'll receive, at a chosen
frequency, an email with snapshots of your visualizations. Like alerts,
it's a useful feature that allows you to receive insights directly into
your inbox, without having to connect to Tableau Server. Each
snapshot contains a link to the published visualizations, so if you
spot something intriguing, click on the picture to automatically open
the View in Tableau Server and start your analysis.
To subscribe, click on the Subscribe button in the toolbar and
configure it on the window that opens. Here's a screenshot of the
Subscribe configuration window:
Define the Users and Groups who will receive the emails.
Specify whether the subscription is only for This View or the
Entire Workbook (there will be a snapshot of every view in the
workbook in the email).
Specify the Schedule and repetition of the emails.
Modify the Subject of the email and add a Message.
Manage the subscriptions and add or remove users.
Download
When you click on the Download button, a new window opens with
six options. Four of these options are available by default:
Data: This opens the summary data, but you can also get the
full data on the second tab.
Crosstab: This generates a CSV file that you can download.
The final feature, unlike the previous ones, isn't about interacting
with the View, but with other users.
Comments
When you click on the Comments button, a Right-hand pane opens
where you can chat with other users. Each workbook's views have
their proper comments. Any user (who is allowed to do so) can add a
comment, mention other users, and add a snapshot of the current
view.
Comments are a great way for you to add more information about
your views. Other users can also use this feature if they spot
mistakes or if they have questions.
When you click on the button, Tableau opens the preview mode
where you can select Laptop, Tablet, or Phone to see how your
dashboard renders on those different devices.
Let's take a look at the last way of interacting with Tableau Server
contents with Web Authoring.
Web Authoring
Web Authoring is the ability to add new data sources and build new
workbooks directly from Tableau Server on the web. There are three
main ways of opening Web Authoring mode.
Tip
The interface is almost identical to Tableau Desktop, with the
Data pane on the left-hand side. You can create new
Worksheets, new dashboards, and stories as if you were in
Tableau Desktop.
This first way to open Web Authoring mode is by clicking on the Edit
button when interacting with a view. If you click on this button,
Tableau opens the Web Authoring mode where you can modify your
workbook without leaving Tableau Server – it's a great way to fix
small issues.
The final way to open Web Authoring mode is to click on the Create
button from the Home or Explore page and select Workbook. Then,
Tableau opens Web Authoring mode and starts by asking you to
connect to the data. With a creator license, you can connect to files
and servers directly from the web! There are four types of data
connections available, as follows:
File: Drag and drop an Excel file or CSV file on the web page;
you can choose the Sheets option and build a new data source.
Connectors: A list of server-hosted databases available directly
from Tableau Server.
On this site: Use an existing published data source.
Dashboard starters: Start with prebuilt templates of cloud-
based systems.
Again, you won't be lost; all the different Workspaces are similar to
Tableau Desktop.
Note
Users who don't have a creator license can always use published
data sources to create new analyses, but they can't connect to
new data from files or servers.
Not all the functionalities of Tableau Desktop are available yet on the
web editor, but it's getting closer and closer after each new version
of Tableau Server. It is, however, an excellent way of allowing new
users to create their analyses and train future Tableau Desktop
users.
Summary
Now that you've learned how to use Tableau Server, you have a
complete view of what Tableau can do as a data visualization and
analysis tool. We looked at connecting data to Tableau Desktop,
building your data source, Worksheets and dashboards, and finally
publishing all your work online for you and other users to interact
with. What a journey!
This chapter was the last piece of the puzzle in understanding how
to use Tableau. You started by understanding what Tableau Server is
and what kind of content you can find in it. Then, you learned how to
publish your content, modify it, and interact with it on the web.
This summary may sound like the end – what else could be left to
see now? A lot! In the next chapters, we'll get our hands back on
Tableau Desktop to discover many other crucial and advanced
features. Creating parameters, using the analytics built-in tools,
using data blending, securing your data, and many more features
are waiting to be discovered. Without any more teasing, let's start
with calculated fields, and how to unlock unlimited power on Tableau
Desktop.
Section 3: Advanced features
In this section, we will create some calculated fields in Tableau. This
section will cover the basis of calculations in Tableau and will alert
you to some easy-to-make mistakes. We will also cover analysis
tools and explain them in depth. We will then browse through the
security requirements in Tableau. We'll demonstrate how to secure
projects and their elements (such as the workbook and data source).
Finally, we'll go through their different roles and all the options with
clear explanations.
Tip
You can also drag and drop any field in the calculation window to
add it to the formula.
If you aggregate the data inside the formula, the pill of the
calculated Measure will start with AGG
If you don't specify the aggregation in the formula, a default one
will be added when you use the field in the View, as it would for
any normal measure
For example, the Profit Ratio field in the Sample – Superstore saved
data source contains the aggregations inside the formula
SUM([Profit])/SUM([Sales]) formula. If you use this field in the View,
the pill will start with AGG.
Note
A Calculated Field cannot contain aggregated and
nonaggregated fields in the same formula. Remember that you
can aggregate a Dimension with the ATTR() function.
Tableau has made this easy: each function has a clear description
and examples for learning how to use them.
Going through all the functions and repeating the description and
example that's already available in Tableau doesn't add any value.
My strong advice for you is to take fifteen minutes to look at all the
functions to have a clear overview of what you can and can't do.
Tip
This formula is a conditional test. If the sum of the sales is
higher than 300,000, the formula returns Great; if the sum of
the sales is lower than 50,000, the formula returns Bad;
otherwise, the formula returns Average.
4. Create a visualization with Sales in Columns, Sub-Category in
Rows, and Sales Highlight in Color.
5. You can change the color of the three values to make it easier to
see the difference between Great and Bad values. Here's the
final
Table Calculation
The Table Calculation functions are special in many ways. Mastering
them requires practice, but they are very useful. It's important to
understand how they work and how to use them. Let's start slowly by
using an awesome option called Quick Table Calculation.
You can find very interesting functions among the Quick Table
Calculations list: Running Sum, Rank, Difference, Percentage of
Total, and many more—all available with a single right-click.
It's normal to still be a bit confused, but let's remedy that by creating
an example together.
. Here'
Our goal is to highlight the highest sales value. Since we have two
dimensions in the view, there are two options: either show the
maximum value for each Region or for each Category. You can
easily achieve this with Table Calculation functions. Follow these
steps to set this up:
Note
The WINDOW_MAX() function is a function that returns the
maximum value in the window. The window is defined by the
Compute Using option of the Table calculation. The formula
returns True if the value of SUM(Sales) is the highest value of
the window, or False otherwise.
3. Put the calculation in Color (and update the color if you want).
By default, the Table Calculation is computed on Table (down),
which in our case is the Region, thereby showing the Region
with the highest sales for each Category. Here's the result:
4. Maybe you prefer to see which Category is the best for each
Region. To do that, right-click on the Highest Value pill, go to
Compute using, and select Table (across). You should see the
same result that's shown in the following screenshot:
The next set of functions are called Level of Detail (LOD) functions,
and are even more powerful.
Level of Detail
Level-of-Detail (LOD) functions were introduced in version 9 of
Tableau and, today, it's hard to believe that there was a time without
them! These functions are probably the most powerful ones. The
FIXED function, in particular, allows you to ignore Filters, ignore
duplication in your data, and return a Measure that's aggregated on
the dimension of your choice. Let's start with the basics of these
functions.
LOD function basics
As you already know, each Dimension in the View splits the number
of Marks and defines the level of detail for the aggregation of the
Measures. However, at some point, you will probably need to
aggregate a Measure at a different level than the one on the View.
To do this, you can use one of the three LOD functions—namely,
INCLUDE, EXCLUDE, or FIXED:
Tip
INCLUDE and EXCLUDE calculations are always Measures and
as a consequence are aggregated. FIXED can be either a
Dimension or a Measure.
You can write all the INCLUDE and EXCLUDE functions with FIXED.
Let's focus on the third LOD function, which is the most powerful
one.
FIXED
With FIXED, all the Dimensions that you want to include in the level
of detail must be specified, so if you want to exclude an existing
Dimension, don't specify it, and if you want to include one, specify it.
Let's see how we can use this to our advantage with an example.
Let's display three different Measures by Sub-Category, with a filter
on State to keep only California. The three Measures are:
The third and last advantage is also very useful: FIXED allows you to
remove duplicates in your data. Since you can specify the level of
detail of a Measure, you can return the unique value of a Measure
(with MAX or MIN) by its unique row identifier. Hard to picture? The
following hands-on tutorial shows you how to deduplicate your data.
Hands-on – using an LOD function to
deduplicate your data
In the following example, we'll add a Target for each Category. The
Target table contains two columns, Category and Target, as you can
see in
Note
For this example, download the Superstore with Target Excel
file from my blog, https://tableau2019.ladataviz.com, in Chapter
9: An Introduction to Calculations section. The direct link is
https://ladataviz.com/wp-content/uploads/2018/09/Superstore-
with-Target.xls. This Excel file contains two sheets, Orders and
Target.
Let's add a target to our orders and deduplicate the data thanks to
the FIXED function:
That's it! You can now use the Target - fixed calculation in all the
Worksheets or other calculations; it'll always be calculated correctly.
In the next chapter, you'll learn how to use all the analytics tools
provided by Tableau to add Trend Lines, Clusters, Forecasts, and
more. Then, you'll create Parameters to bring more interactivity to
your visualizations. Finally, with the help of calculations (I told you,
this chapter is crucial), you'll create one of the most efficient and
useful visualizations by combining Parameters, Analytics tools, and
Calculated Fields!
Chapter 10. Analytics and
Parameters
Analytics and parameters are two significant but easy ways to
enhance your work. Analytics tools offer new insights, such as Trend
Line, Forecast, and Cluster. With Parameters, you'll discover a
new way of bringing interactivity to your visualizations with user
inputs.
If you went through all the chapters prior to this one, you know what
data source we'll be using! If this is the first chapter you are reading,
all the examples and a guided tutorial can be reproduced with the
Sample – Superstore data source, which you can find on the first
page when opening Tableau.
Let's explore all the options of each section. All of them can be used
with a simple drag and drop.
Constant Line
By double-clicking on Constant Line or by dragging and dropping
into the View, you can automatically add a Constant Line to your
visualization. When you add one, Tableau opens a small textbox
where you can enter the value of the constant. A Constant Line is an
excellent way of representing a goal.
With a simple click on the line, you can change the value of the
constant, change its format, or remove it. Let's continue with the
second, very similar option: Average Line.
Average Line
Average Line works in the same way as Constant Line; however, you
don't enter any values. Instead, Tableau automatically calculates the
average of the Measure. When you start to drag Average Line into
the View, Tableau displays a menu where you can drop the option on
Table, Pane, or Cell, as shown in the following screenshot:
The following descriptions of the icons will help you understand the
difference between the three options:
Table: Tableau draws a unique line that is the average of all the
Marks
Pane: Tableau draws as many lines as there are intersections
between the Dimensions (in the preceding example, there are
three lines)
Cell: Tableau draws a line for each different value (so it's usually
not very useful when using averages)
When you click on Average Line, you can edit the default
aggregation average, to make it median or sum, for example. If you
click on Edit, Tableau opens a menu where you can customize the
Average Line. We'll look at what else we can do in this window in the
The Custom tab section.
The next option, Box Plot, only works under certain conditions.
Box Plot
The Box Plot option is only available when there is more than one
unstacked Mark per cell. A Box Plot may be hard to read for people
who don't come from a statistical background, but it's a great tool for
viewing the dispersion in your data and spotting outliers. Here's an
example of a Box Plot:
This example shows the profit made by each Region, with one circle
per state. As you can see, you can easily spot the outliers as Texas
and California.
Totals
When you start to drag Totals into the View, Tableau displays a new
menu where you can specify whether you want to add the Subtotals,
the Column Grand Totals, or the Row Grand Totals.
Now, let's explore a new set of options, which are under the Model
tab.
The next option is, this time, very different compared to what you've
seen before.
Trend Line
You can only add a Trend Line when you have two continuous fields
on opposing axes (one on Rows and one on Columns). A Trend Line
can be used to view a trend of a Measure over time or the correlation
between two Measures.
To add a Trend Line, drag and drop the option into the View. By
default, the Trend Model that's used is linear. You can specify the
Trend Model to use when you drag and drop the option.
Tip
It's also possible to add a Trend Line with a right-click on the
View.
When you hover over a Trend Line, you can see information about
the Trend Model. If you right-click on the Trend Line, you can open
an advanced description of the Trend Line and the Trend Model or
open the Edit Trend Lines... window, where you can change the
Trend Model and customize it.
Forecast
Forecast is a great option when you have Date fields in your data
source. You can only add a Forecast when you're displaying a
Measure through a continuous date. Tableau calculates the forecast
based on the existing data points. To add a Forecast, drag and drop
the option into the View or select Show Forecast from the right-click
options.
Cluster
To add a cluster, you need to have at least one Measure and one
Dimension in the View. To add a cluster, double-click on the option or
drag and drop it into the View.
To finish with this section, let's look at the Custom analytics options.
Be careful; this will be fast!
Custom options give you the liberty to choose precisely what you
want to display. The available values when editing a reference Line,
Band, or Box Plot are the pills in the View and the Parameters. You
won't find all the Measures from the data source. If you want to build
a reference Line, Band, or Box Plot with a specific Measure, you
need to add it somewhere in the View (usually in the Detail Mark
property, since it doesn't alter the visualization).
Note
You can download the Analytics ZIP file from my website
(https://tableau2019.ladataviz.com) in Chapter 10: Analytics
and Parameters, or click on this direct link:
https://ladataviz.com/wp-content/uploads/2019/05/Analytics.zip.
When you unzip the file, you'll find a Tableau Package Workbook
with an example of each Analytics option.
They are not linked to the data source (they don't rely on any
field)
They only return one value at a time
Creating a Parameter
To create a Parameter, you can use the small arrow next to
Dimensions, as highlighted in the following screenshot:
The last option, Range, is available for Date, Date and Time,
Integer, and Float. With Range, you can set a Minimum, a
Maximum, and a Step size. The user will only be able to
choose a value from that range. Here's an example of the usage
of Range:
Note
If you create a Boolean Parameter, you can't use those
options, and you'll be limited to True and False. However,
you can change the aliases.
Click on OK, and your Parameter will be ready! You may be
wondering how you can use it. Continue reading!
Using a Parameter
Usually, a Parameter is displayed on a Worksheet or a Dashboard.
To display a Parameter on a Worksheet, right-click on it and select
the Show Parameter Control option. On a Dashboard, you can add
a Parameter from the options when you select a Worksheet or from
the Analysis menu at the top.
Note
Since Tableau Desktop 2019.2, you can also update the value of
a parameter with an Action, as shown in Chapter 7, Powerful
Dashboards, Stories, and Actions.
Depending on the data type and the allowable value specified, the
parameter can be displayed as follows:
As a Type In, a free textbox where the users can enter any
value they want
As a Slider, which is usually associated with a ranged
parameter
As a Compact List or Single Value List, usually associated
with a list parameter
Your mission (if you accept it) is to build a visualization where you
can see the profit by region of a selected year compared to the
previous year with a Reference Line. The Color also helps you to
quickly spot the regions where the profit is lower than in the previous
year. Here's the final result:
Quite impressive, isn't it? Let's build it! Follow this tutorial to learn
how to do this:
Tip
For each Calculated Field, make sure that the calculation is
valid.
7. Now, you need to build the visualization. Put Profit - Selected
year inColumns, Region in Rows, and sort the values. You can
now play with the Parameter to show the Profit of the selected
year.
8. Put Profit - Last year in the Detail property. Your Worksheet
should look as follows:
You can play with the Parameter to change the year, and you'll
immediately spot the problematic region. This visualization is a good
exercise because it makes you practice a lot of Tableau's features,
and it's also a great way of comparing two different years.
Summary
This chapter focused on two ways of enhancing your visualizations.
With the Analytics tools, you can use models such as Trend Line,
Cluster, and Forecast, but also all sorts of reference Lines, Bands,
and Distribution. You can use all of these options to visualize your
data in new ways and get a deeper understanding of it. With
Parameters, you can create any input to interact with a visualization.
The last section of this chapter summed up what you covered in this
chapter with a real use case using Parameters and a reference Line.
In the next chapter, we'll talk about data sources again. You'll
discover how to work with multiple data sources using a cross-
database join and data blending, and how to create advanced
unions.
Chapter 11. Advanced Data
Connections
In a Workbook, you can add as many data sources as you want. In a
Worksheet, you can see which data source is used thanks to the tick
✓
mark ( ) next to its icon, as shown in the following screenshot:
Cross-database join
Data blending
Wildcard union
Tip
You can't use all the different types of connections in a cross-
database join.
Tip
To reproduce the following example, you need to download the
Reimbursement Excel file available at
https://tableau2019.ladataviz.com, in the Chapter 11: Advanced
Data Connections section, or use this link:
https://ladataviz.com/wp-
content/uploads/2018/09/Reimbursement.xlsx.
Tip
If no fields are common, you can create a Calculated field to
build the relationship.
Let's add a yearly target for our sales. In a previous chapter, we had
to deduplicate the target value. You'll see that, with data blending,
there is no need to do that.
Note
To reproduce the following example, you need to download the
Target Excel file from https://tableau2019.ladataviz.com, in the
Chapter 11: Advanced Data Connections section, or use this
link: https://ladataviz.com/wp-
content/uploads/2018/09/Target.xlsx.
Target is a simple Excel file with the Year and the value of the Target,
as you can see here:
Go through the following steps to add a target to the sales:
5. Create a bar chart with the year of the Order Date in Columns
and the Sales in Rows.
6. Add the Target Measure from the Target data source in Detail.
A warning will open because Tableau isn't able to find a
relationship between the two data sources. Your current
visualization should look as follows:
7. Open the Data menu at the top and click on Edit
Relationships....
8. Choose Sample - Superstore as the Primary data source and
Target as the secondary, then select Custom. The configuration
window should look as follows:
9. Click on the Add... button and, in the window that opens, select
the YEAR(Order Date) field from the primary data source field
and Year from the secondary, as highlighted in the following
screenshot. Then click on OK:
10. In the visualization, right-click on the axis and select Add
Reference Line.
11. In the configuration window, change the scope to Per Cell,
select SUM(Target) as the value, choose a Custom label, and
write Target. Your configuration window and visualization should
be similar to this screenshot:
Adding the targets with a normal join will duplicate the values.
Thanks to data blending, it's both easy and practical to add new
Measures with different aggregations coming from different data
sources. However, there are some limitations, such as you can't use
the count distinct or median aggregation, and Level of Detail (LOD)
calculations are not allowed.
Note
To reproduce the following example, you need to download the
Sales.zip file from https://tableau2019.ladataviz.com, in the
Chapter 11: Advanced Data Connections section, or use this
link: https://ladataviz.com/wp-content/uploads/2018/09/Sales.zip.
6. That's it! To test the wildcard union, you can create a new
visualization that displays the Year of Order Date and the
Sales, with the Path of the different files:
Wildcard unions are very practical. Use them as often as you can!
The only rule is to be careful with the patterns so that you don't
include things you don't want!
Summary
This chapter was short, but the three new features presented will
undoubtedly be useful for you! With a cross-database join, you can
create a unique data sources that combine multiple different
connections. With data blending, you can create a relationship
between multiple data sources and use their fields in the same
Worksheet. Finally, you learned how to give superpowers to unions
thanks to wildcard unions, a feature that automatically adds files and
tables based on a pattern.
We have one last technical chapter to go, and it's not a trivial one,
since we'll be talking about security. You will see how to secure your
data on Tableau Server and in Tableau Desktop, thanks to three
different layers of protection. What are you waiting for? You're almost
at the end!
Chapter 12. Dealing with
Security
In this last advanced chapter, we'll speak about security, which is an
essential aspect of working with data. To add protection, you need to
have Tableau Server. In this chapter, we'll focus on three ways of
dealing with security, including the following:
Be aware that not all options are available for all elements. Here's
the complete list of permissions, grouped by the elements where
they appear:
Global permissions:
Project permissions:
Project leader : A project leader has all the
permissions on that project.
Workbook Permissions:
With those permissions, you can control who has access to what on
Tableau Server. You can, for example, allow only a few users to
access your Workbook. But what if you want to control what those
users can see?
User filters
Let's say that, based on the Sample - Superstore data source, you
want to control the Region that the users can see. To do that, you
need to set a User Filter.
User filters are a special kind set on Tableau Desktop. They link
Tableau Server users to dimension values. It's quite easy to create a
user filter:
Note
The reason it's better to add a User Filter on the Data Source
filters rather than the Filter shelf is to increase security. If you put
a User Filter in the Filter shelf, a user may be able to download
the Workbook and remove the User Filter from the Filters. They'll
have access to all the data. Also, if someone starts a new
analysis based on this Data Source, they'll also have access to
all the data. If you put the User Filter on the Data Source Filters,
the users won't be able to remove it without having the right to
edit a Data Source, and it will be automatically applied when
using this Data Source.
Now, to illustrate the usage of a User Filter, let's look at an example
with the Sample - Superstore Data Source. For this example, I've
created five groups on Tableau Server: Central Users, South Users,
West Users, East Users, and Top Management.
Tip
It's not a problem if you can't create the same groups as me to
replicate this example. Just use existing groups or users on
your Tableau Server; you can't break anything.
6. Beside the name of the logged-in user, there's an arrow you can
click on to select another User or Group.
7. With this option, choose the West group, and the User Filter will
automatically filter the Region to keep only the West value, as
you can see here:
8. You can test the same with Top Management—all the regions
will be displayed. When you're confident that the User Filter
works fine, you can remove it from the Filters shelf.
9. Right-click on the Data Source name and select Edit Data
Source Filters.
10. Click on the Add button and select Region Filter field.
11. Select the Use all option and click on OK. The User Filter is
applied on all the Data Source, thereby enhancing the security
of your data.
This is the first way of securing your data. As you may have
guessed, if you have hundreds of users to give access to, and
hundreds of different values in the field to secure, the User Filter will
be extremely long to create and impossible to maintain. In those
cases, we create a row-level filter.
Row-level filters
To create a row-lever filter, your Data Source must contain a field
with the name of the Tableau Server Users. This solution only works
when the access level is already defined in your data. This option
uses a Tableau function called USERNAME() that returns the username
of the currently logged-in user.
Again, the best way to understand this is with an example. You can
reproduce the tutorial with your own Users and Groups in your
Tableau Server and the Sample - Superstore Data Source.
John Snow has access to all the Regions (do not confuse John
Snow, a famous epidemiologist who discovered, in 1854, that
cholera deaths were clustered around the water pumps in
London thanks to data visualization, with Jon Snow, who knows
nothing).
William Playfair only has access to West.
Charles Minard only has access to Central.
Here's the step-by-step guide of how to create a row-level filter
between the data and Tableau Server:
Tip
This join duplicates the data by the number of users, but
since you never show multiple users at the same time, it's
not a problem.
Tip
Before Tableau 2018.3, the only drawback was data duplication:
when using an extract, all the duplicated lines must be
generated, which makes the extract gigantic. Since Tableau
2018.3, you can use the multiple table schema when creating an
extract with joins. This drastically decreases the extract size
when using a row-level filter.
With this solution, you let the data control the security. It's a great
way to handle complex situations because you can create row-level
filters based on multiple fields.
Summary
In this last technical chapter, you learned how to secure your data
and content on Tableau Server. The permissions allow you to control
who can see your work and what power they have over it (such as to
download, save, edit, and more). On Tableau Desktop, with user
filters and row-level filters, you can control what the users can see in
your data.
This book is almost finished. We've covered all the technical aspects
of Tableau. The last chapter is an invitation for you to join the
Tableau Community, along with tips on how to get better and better
each day with different community projects.
Section 4: After Finishing the
Book
It's almost time to say goodbye and close this book. This conclusion
is more an opening than an ending. You'll see all the options
available to continue your journey with Tableau keep growing your
skills.
Let's start with the reason Tableau is the best tool for data
visualization: the Community.
The community is all about sharing. There are many events where
the Tableau Community gathers to share. The Tableau User Group
(TUG) is a regional event (check whether there's one near your
area!) where senior users meet new users and discuss new features,
tips, use cases, and more. It's also a great place to share pizzas and
beers!
Don't be sad if there is no TUG near you; there are many online
events, such as the Fringe Festival, that are organized by the
Tableau community: http://www.thefringefestival.rocks/.
Of course, there are also two major official events: the Tableau
Conference in the US and the European Tableau Conference in
Europe. These are the biggest Tableau events, and they are the best
places to meet people, discover all the new features to be released,
and cheer on your favorite competitor at the Iron Viz event.
You'll find all the events, groups, forums, links, and webinars here:
https://www.tableau.com/Community.
Tableau Public is like a social network where you can only find the
best visualizations available. As we are data lovers, here are some
figures: 250,000 Tableau Public users have published more than 1
million Workbooks, generating more than 1 billion views.
On the Tableau Public website, you can find a Viz Of The Day
section on the home page (every day, a new Workbook is promoted
by Tableau: https://public.tableau.com/en-us/s/), and many featured
visualizations in different categories (Greatest Hits, Sports, Social
Goof, and so on). You can find a list of the current featured authors,
a blog, and many resources to keep learning. You can also search
for any author or interest. But wait – the best is yet to come.
Viz For Social Good was awarded a Silver for Community at the
2017 Information is Beautiful Awards.
Note
All the information that is required so that you can join can
be found here: https://www.vizforsocialgood.com.
Tip
You'll find all the information about this, datasets, and links
here: https://www.makeovermonday.co.uk/.
Note
Find all the challenges at http://www.workout-
wednesday.com/weekly-overview/.
As you can see, there are many ways to learn and become better at
using Tableau. Maybe, after some time, you'll compete as an Iron Viz
contestant, or you'll be recognized as one of the Ambassadors or
Zen Masters. Don't know what I'm talking about? The next – and last
– section explains everything.
Ambassadors, Zen Masters,
and Iron Viz
When you start in the Tableau Community, it may be hard to know
who to follow. Tableau has decided to help you by recognizing the
investment and spirit of some people in the Community.
Ambassadors
The first set of amazing people are the Ambassadors. They are split
into four groups:
Zen Masters
The second set of amazing people is the Zen Masters. They are the
faces of Tableau Community. They passionately dedicate a huge
amount of time to help everyone excel in Tableau. They not only
create great visualizations, but they also share their knowledge as
much as they can. Everyone in the Tableau Community has learned
at least one thing from a Zen Master.
Discover who the Zen Masters are and what they are doing at
https://www.tableau.com/zen-masters.
Iron Viz
As you enhance your skills, you may want to try to compete against
other people in the Community. For that, you have Iron Viz. The
competition is divided into two parts: three qualification contests,
called the Feeders, and one Final. For the Feeders, only the theme
is imposed, and the contestants have approximately one month to
find the data and create the best possible visualization. There is one
winner per Feeder.
The three winners of the Feeders battle during the Iron Viz Final at
the annual Tableau Conference. There is no way to prepare for the
Final: build a Workbook from the start, in 20 minutes, live, in front of
thousands of screaming people. A jury, composed of four people,
and the public, vote on Twitter to determine the annual Iron Viz
champion. Since 2017, there is also a European Iron Viz
competition. All the information about the Iron Viz competition are
available here: https://www.tableau.com/iron-viz.
Thanks for purchasing and reading this book. I truly hope that you've
learned a lot and that you'll use Tableau with the same passion I do.
Appendix A. Other Books You
May Enjoy
If you enjoyed this book, you may be interested in another book by
Packt:
Tableau 2019.x Cookbook
ISBN: 978-1-78953-338-5
Understand the basic and advanced skills of Tableau Desktop
Implement best practices of visualization, dashboard, and
storytelling
Learn advanced analytics with the use of build in statistics
Deploy the multi-node server on Linux and Windows
Use Tableau with big data sources such as Hadoop, Athena,
and Spectrum
Cover Tableau built-in functions for forecasting using R
packages
Combine, shape, and clean data for analysis using Tableau
Prep
Extend Tableau's functionalities with REST API and R/Python
Tableau 2019.1 for Data Scientists [Video]
Manja Bogicevic
ISBN: 978-1-78995-824-9
Connect Tableau to various datasets and gather data from
sources such as Excel and CSV files
Work with full-suite visuals and create bar charts, area charts,
maps and scatterplots, and treemaps and pie charts
Explore storytelling and how to choose the best colors for your
dashboards
Discover the types of joins and how they work
Work with data blending in Tableau
Export results from Tableau into PowerPoint, Word, and other
software
Understand aggregation, granularity, and level of detail
Study advanced data preparation in Tableau and profit analysis
Ambassadors
about / Ambassadors
Forums Ambassadors / Ambassadors
Social Media Ambassadors / Ambassadors
User Group Leader Ambassadors / Ambassadors
Tableau Public Ambassadors / Ambassadors
reference / Ambassadors
Ask Data
B
bar charts
bins / Bins
built-in Analytics tools
using / Using built-in Analytics tools
Summarize tab / The Summarize tab
Model tab / The Model tab
Custom tab / The Custom tab
C
Calculated Field
calculation functions
connectors
Container
D
Dashboard
Dashboard actions
Dashboard objects
data exploration
data source
data types
E
Empowered Dashboard
Extract connection
F
filled maps
filters / Filters
Forums Ambassadors / Ambassadors
full outer join / Join requirements and types
G
groups / Groups, sets, and bins, Groups
I
inner join / Join requirements and types
interactivity
Iron Viz / Ambassadors, Zen Masters, and Iron Viz, Iron Viz
J
join
L
left join / Join requirements and types
Level of Detail (LOD) functions
line charts
Live connection
M
MakeLine / MakePoint and MakeLine (2019.2)
Make Over Monday
multiple Measures
P
pages / Pages
Parameters
published workbooks
Q
quick filters / Quick filters
Quick Table Calculation / Table Calculation, Quick Table
Calculation
R
right join / Join requirements and types
row-level filters / Row-level filters
S
sets / Sets
simple transformations
Story
T
Tableau
reference / Basics
toolbar options
V
Vector Map
visualizations
W
Web Authoring / Web Authoring
wildcard union / Wildcard union
workbook
worksheet formats
worksheet options
Y
year-on-year comparator