Book Image

Tableau 2019.x Cookbook

By : Dmitry Anoshin, Teodora Matic, Slaven Bogdanovic, Tania Lincoln, Dmitrii Shirokov
Book Image

Tableau 2019.x Cookbook

By: Dmitry Anoshin, Teodora Matic, Slaven Bogdanovic, Tania Lincoln, Dmitrii Shirokov

Overview of this book

Tableau has been one of the most popular business intelligence solutions in recent times, thanks to its powerful and interactive data visualization capabilities. Tableau 2019.x Cookbook is full of useful recipes from industry experts, who will help you master Tableau skills and learn each aspect of Tableau's ecosystem. This book is enriched with features such as Tableau extracts, Tableau advanced calculations, geospatial analysis, and building dashboards. It will guide you with exciting data manipulation, storytelling, advanced filtering, expert visualization, and forecasting techniques using real-world examples. From basic functionalities of Tableau to complex deployment on Linux, you will cover it all. Moreover, you will learn advanced features of Tableau using R, Python, and various APIs. You will learn how to prepare data for analysis using the latest Tableau Prep. In the concluding chapters, you will learn how Tableau fits the modern world of analytics and works with modern data platforms such as Snowflake and Redshift. In addition, you will learn about the best practices of integrating Tableau with ETL using Matillion ETL. By the end of the book, you will be ready to tackle business intelligence challenges using Tableau's features.
Table of Contents (18 chapters)

Building a tree map

Tree maps are useful for showing relative proportions of many categories in a total. In this recipe, we will investigate the composition of our dataset to see which states are dominant, with the most records, and which are represented with fewer records.

Getting ready

Connect to the Baby_names.csv data source and open a new worksheet.

How to do it...

  1. Drag and drop Number of Records from Measures onto Size in the Marks card.
  2. Drag and drop State from Dimensions onto Detail in the Marks card.
  3. Drag and drop State from Dimensions onto Label in the Marks card.
  1. Drag and drop Number of Records from Measures onto Label in the Marks card:

How it works...

The number of records is an automatically generated measure that simply represents the number of rows in the dataset. We are using it to see the relative representation of each state in our dataset.

There's more...

Placing a measure, in this case, Number of Records, on Size is necessary for creating a tree map. However, you can make your tree map even more intuitive by adding Number of Records to Color as well. You just need to drag and drop Number of Records from Measures onto Color in the Marks card button, and the value of Number of Records will also be reflected by a color gradient of the rectangles. You can also change and adjust the color palette by clicking on the Color button in the Marks card and choosing the settings you prefer:

See also