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

You're reading from   Learning Tableau 10 Business Intelligence and data visualization that brings your business into focus

Arrow left icon
Product type Paperback
Published in Sep 2016
Publisher Packt
ISBN-13 9781786466358
Length 432 pages
Edition 2nd Edition
Languages
Tools
Arrow right icon
Author (1):
Arrow left icon
Joshua N. Milligan Joshua N. Milligan
Author Profile Icon Joshua N. Milligan
Joshua N. Milligan
Arrow right icon
View More author details
Toc

Table of Contents (12) Chapters Close

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

Foundations for building visualizations

When you first connect to a data source, such as the Superstore file, Tableau will display the data connection and the fields in the data pane on the left sidebar. Fields can be dragged from the data pane onto the canvas area or onto various shelves, such as Rows, Columns, Color, or Size. We'll see that, placement of the fields will result in different encodings of the data, based on the type of field.

Measures and dimensions

The fields from the data source are visible in the data pane and are divided into measures and dimensions. The difference between measures and dimensions is a fundamental concept to understand when using Tableau:

  • Measures: Measures are values that are aggregated. That is, they can be summed, averaged, and counted, or have a minimum or maximum.
  • Dimensions: Dimensions are values that determine the level of detail at which measures are aggregated. You can think of them as slicing the measures or creating groups into which the measures fit. The combination of dimensions used in the view defines the view's basic level of detail.

As an example (which you can view in the Chapter 01 Starter workbook on the Measures and Dimensions sheet), consider a view created using the fields Region and Sales from the Superstore connection, as shown here:

Measures and dimensions

The Sales field is used as a measure in this view. Specifically, it is being aggregated as a sum. When you use a field as a measure in the view, the type aggregation (such as SUM, MIN, MAX, AVG) will be shown on the active field. In the preceding example, the active field on Rows clearly indicates the sum aggregation of Sales: SUM(Sales).

The Region field is a dimension with one of four values for each record of data: Central, East, South, or West. When the field is used as a dimension in the view, it slices the measure. So instead of an overall sum of sales, the preceding view shows the sum of sales for each region.

Discrete and continuous

Another important distinction to make with fields is whether a field is being used as discrete or continuous. Whether a field is discrete or continuous, determines how Tableau visualizes it based on where it is used in the view. Tableau will give you a visual indication of the default for a field (the color of the icon in the data pane) and how it is being used in the view (the color of the active field on a shelf). Discrete fields, such as Region in the previous example, are blue, and continuous fields, such as Sales, are green.

Tip

In the screenshots, in the print version of this book, you should be able to distinguish a slight difference in shading between discrete (green) and continuous (blue) fields, but pay special attention to the interface as you follow along using Tableau. You may also wish to download the color image pack from Packt Publishing. You can click on the link: https://www.packtpub.com/sites/default/files/downloads/LearningTableau10_ColorImages.pdf.

Discrete fields

Discrete (blue) fields have values that are shown as distinct and separate from each other. Discrete values can be reordered and still make sense.

When a discrete field is used on the Rows or Columns shelves, the field defines headers. Here the discrete field Region defines column headers:

Discrete fields

Here, it defines row headers:

Discrete fields

When used for color, a discrete field defines a discrete color palette in which each color aligns with a distinct value of the field:

Discrete fields

Continuous fields

Continuous (green) fields have values that flow from first to last. Numeric and date fields are often used as continuous fields in the view. The values of these fields have an order, which would make little sense to change.

When used on Rows or Columns, a continuous field defines an axis:

Continuous fields

When used for color, a continuous field defines a gradient:

Continuous fields

It is very important to note that continuous and discrete are different concepts from measure and dimension. While most dimensions are discrete by default and most measures are continuous by default, it is possible to use any measure as a discrete field and some dimensions as continuous fields.

Tip

To change the default of a field, right-click on the field in the data pane and select Convert to Discrete or Convert to Continuous. To change how a field is used in the view, right-click on the field in the view and select it to be either discrete or continuous.

In general, you can think of whether a field is continuous or discrete, as telling Tableau, how to display the data (header or axis, single colors or gradient) and measure or dimension, and how to organize the data (aggregate it or slice/group it).

As you work through the examples in this chapter, pay attention to the fields you are using to create the visualizations, whether they are dimensions or measures, and whether they are discrete or continuous. Experiment with changing fields in the view from continuous to discrete and vice versa to gain an understanding of the difference in the visualization.

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime
Banner background image