Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Save more on your purchases! discount-offer-chevron-icon
Savings automatically calculated. No voucher code required.
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletter Hub
Free Learning
Arrow right icon
timer SALE ENDS IN
0 Days
:
00 Hours
:
00 Minutes
:
00 Seconds
Tableau Cookbook for Experienced Professionals
Tableau Cookbook for Experienced Professionals

Tableau Cookbook for Experienced Professionals: Over 60 advanced recipes for maximizing performance, interactivity, and platform potential

Arrow left icon
Profile Icon Pablo Sáenz de Tejada Profile Icon Daria Kirilenko
Arrow right icon
€8.98 €29.99
eBook Apr 2025 372 pages 1st Edition
eBook
€8.98 €29.99
Paperback
€37.99
Subscription
Free Trial
Renews at €18.99p/m
Arrow left icon
Profile Icon Pablo Sáenz de Tejada Profile Icon Daria Kirilenko
Arrow right icon
€8.98 €29.99
eBook Apr 2025 372 pages 1st Edition
eBook
€8.98 €29.99
Paperback
€37.99
Subscription
Free Trial
Renews at €18.99p/m
eBook
€8.98 €29.99
Paperback
€37.99
Subscription
Free Trial
Renews at €18.99p/m

What do you get with eBook?

Product feature icon Instant access to your Digital eBook purchase
Product feature icon Download this book in EPUB and PDF formats
Product feature icon Access this title in our online reader with advanced features
Product feature icon DRM FREE - Read whenever, wherever and however you want
Product feature icon AI Assistant (beta) to help accelerate your learning
Modal Close icon
Payment Processing...
tick Completed

Billing Address

Table of content icon View table of contents Preview book icon Preview Book

Tableau Cookbook for Experienced Professionals

Building Advanced and Efficient Tableau Data Models

It might sound obvious, but without data, there is not much we might be able to analyze and visualize in Tableau. To start using data in Tableau, first, we need to create a data source.

Each data source has a data model. A data model is a diagram needed before starting an analysis to allow Tableau to understand what data we want to use, any specific adjustments we might want to make to the fields, such as renaming or changing the data type of any of them, and, if we want to use more than one table at the same time, how the different tables are related in order to query the data correctly and get meaningful results.

It’s common not to spend too much time on the data modeling and data source creation phase and jump to the analysis and visualization as quickly as possible. But creating a good data model is key, especially if we have different tables that we need to combine and use together.

Additionally, it can save us...

Technical requirements

For this chapter, we will use six different tables available on GitHub at https://github.com/PacktPublishing/Tableau-Cookbook-for-Experienced-Professionals/tree/main/Chapter_01.

For this chapter, all the images and examples will be provided using Tableau Desktop Public Edition, version 2024.3. Everything we will cover can also be done through the web interface of Tableau Cloud or Tableau Server, but we recommend using Tableau Public Edition or Tableau Desktop to follow along.

Note

The look and feel of the Data Source page are a bit different in Tableau’s most recent version, 2025.1. Additionally, one of the topics covered in the chapter – multi-fact data models – has only been supported since version 2024.2. For this reason, we recommend updating your version of Tableau Desktop or installing Tableau Public Edition version 2024.2 or higher for this chapter. If you can’t have the latest version, keep in mind that some images...

Building a basic data model

Data models can be very simple (a single table) or more complex (dozens of tables). For this recipe, we will start with a simple data model relating two different tables together to better understand the data source page and how to create relationships and what they are.

There are two main ways to create a data model:

  • Using Tableau Desktop or Tableau Desktop Public Edition
  • Using the web interface from Tableau Cloud or Tableau Server

In this recipe, we will use the first option, but you can follow along using the web interface if you prefer. To create a workbook and connect to new data from the Tableau Cloud or Tableau Server web interface, check the first two steps in this guide if you don’t know how to do it: https://help.tableau.com/current/pro/desktop/en-us/getstarted_web_authoring.htm.

Getting ready

You can download the tables we will be using for this recipe in the GitHub repository shared in the Technical requirements...

Combining logical and physical layers in our data model

In the previous recipe, we related two tables using what we called the logical layer, but Tableau’s data model allows us to use two different layers:

  • The logical layer is the default view in the Data Source page. When you add tables to your model, those are related through relationships, which have been the default way of combining tables in our data model since Tableau version 2020.2.
  • The physical layer allows us to combine tables using traditional joins and unions. Before 2020.2, this was the only layer available. Each logical layer can contain one or more physical tables.
Figure 1.9 – Tableau’s data model

Figure 1.9 – Tableau’s data model

The main benefit of having a logical and physical layer is the higher flexibility to build data models based on your needs.

In most scenarios, working with the logical layer should be enough, but if you need to perform traditional joins or unions, you’...

Building multi-connection schemas

So far, we have seen how to build data models and data sources using one single data connection type. Our example has been with CSV files, but the same logic will apply when using data from Snowflake, Google BigQuery, Amazon Redshift, Azure SQL Database, or any other connection type.

In a lot of use cases, data might not be in the same database type or in the same file type. Very frequently, analysts need to combine data from a database with data from a CSV file; data from an Excel file with data from a CSV file; or even data from Snowflake with data from Amazon Redshift for instance.

How can we create a data model in Tableau that combines different connection types? Learning how we can build multi-connection or cross-database schemas is the main objective of this recipe.

Getting ready

For this exercise, I’ll use some of the datasets we have used already during this chapter. If you don’t have them, please go to the beginning...

Optimizing data model relationships

In many scenarios, when creating relationships between tables, you’ll not need to do anything other than specify the related fields between them. This will guarantee you get meaningful results and, in general, a good performance.

Sometimes, with complex data models with a lot of different tables or big datasets and complex relationships, you might want to adjust how the tables are related to let Tableau know specifically how to perform those relationships and improve query performance and overall speed.

Tableau allows us to do this by manually setting the cardinality and referential integrity of each table in a relationship. It is important to keep in mind that setting these options incorrectly can also translate into wrong results during your analysis.

A best practice is to only adjust the following settings when you have a deep understanding of your data, especially of the fields you are using to relate your tables.

Getting ready...

Building multi-fact models with Tableau 2025.1

Tableau allows us to build data models quickly and easily. However, it lacked a concrete type of data model that is common in some companies and scenarios: multi-fact data models.

You may have noticed that all the models we have seen so far have one base table. The base table is the first table we add to the data model, and every single table we add afterward must be connected to it directly or through another table.

This has been an obstacle for a long time to developing more complex data models with different base tables not connected between them, and it has been solved with Tableau version 2024.2.

Getting ready

For this recipe, we will use the same Hospital tables we used earlier in the chapter. Practice what you have learned in previous recipes to create a data model that combines Visits, Patients, Doctors, Hospitals, and Specialties, as shown in Figure 1.19.

Figure 1.19 – The starting data model

Figure 1.19 – The starting...

Crafting data models with Tableau Desktop versus Tableau Prep

One of the main benefits of Tableau is the efficiency of Tableau extracts. An extract is a snapshot of the data that Tableau gets from the original source and saves locally or on your own Tableau Server or Tableau Cloud environment.

Tableau extracts have some benefits, the two most important being improved performance and reduced workload from the original source when users run queries using the extract.

As you can imagine, Tableau extracts also have some downsides. They can take a long time to run if the original data is very big, and to date (Tableau version 2024.2), it’s not possible to create data models combining Tableau extracts.

Fortunately, Tableau has another tool called Tableau Prep, or Tableau Prep Builder, that allows us to combine different Tableau extracts and also perform additional data preparation tasks before creating our Tableau extract, similar to what you can achieve with Extract, Transform...

Left arrow icon Right arrow icon
Download code icon Download Code

Key benefits

  • Transform dashboards into data apps that drive instant business decisions
  • Build robust data models that scale with your data
  • Extend Tableau with developer tools to automate tasks and integrate with external systems
  • Purchase of the print or Kindle book includes a free PDF eBook

Description

In today’s data-driven business world, advanced analytics set organizations apart. Basic visualizations no longer suffice for Tableau developers tackling complex data challenges. Written by Tableau experts who've trained Fortune 500 companies and led global analytics initiatives, this cookbook delivers battle-tested techniques with the perfect blend of technical depth and practical application. You’ll master advanced techniques such as geospatial analysis, data modeling for optimized workflows, and enterprise-scale content management. This book shows you how to leverage Tableau cloud’s Data Management capabilities to centralize data sources and ensure data quality for consistent analytics. You’ll also explore advanced management features such as the Content Migration Tool in Tableau 2025.1 and beyond. Bridging the gap between fundamentals and cutting-edge practices, this book extends Tableau’s capabilities with APIs, custom LOD expressions, virtual connections, data apps, and TabPy. You’ll gain the skills to solve complex business problems, create high-impact dashboards, and seamlessly integrate Tableau into your data strategy, all while adhering to security and governance best practices. *Email sign-up and proof of purchase required

Who is this book for?

This cookbook is for Tableau professionals,developers, BI administrators, and data analysts ready to explore advanced techniques and deepen their expertise. To make the most of this book, you should either have intermediate to advanced experience with Tableau Desktop and its core functionalities. If you’re coming from another BI background, this book will prove invaluable as it demonstrates Tableau’s real-world applications. Familiarity with products such as Tableau Cloud and Tableau Server is beneficial, but not a prerequisite for using this book.

What you will learn

  • Build advanced, high-performing Tableau data models and tables
  • Tackle data complexities with LOD expressions and table calculations
  • Leverage zone visibility to build interactive and user-friendly dashboards
  • Optimize workbook performance for improved user experience
  • Analyze geospatial data with map layers, shapefiles, and spatial joins
  • Develop a deeper understanding of Tableau's REST API capabilities
  • Use Tableau's order of operations to troubleshoot calculations
  • Adopt industry-standard best practices to secure corporate data assets

Product Details

Country selected
Publication date, Length, Edition, Language, ISBN-13
Publication date : Apr 25, 2025
Length: 372 pages
Edition : 1st
Language : English
ISBN-13 : 9781835467541
Vendor :
Tableau
Category :
Tools :

What do you get with eBook?

Product feature icon Instant access to your Digital eBook purchase
Product feature icon Download this book in EPUB and PDF formats
Product feature icon Access this title in our online reader with advanced features
Product feature icon DRM FREE - Read whenever, wherever and however you want
Product feature icon AI Assistant (beta) to help accelerate your learning
Modal Close icon
Payment Processing...
tick Completed

Billing Address

Product Details

Publication date : Apr 25, 2025
Length: 372 pages
Edition : 1st
Language : English
ISBN-13 : 9781835467541
Vendor :
Tableau
Category :
Tools :

Packt Subscriptions

See our plans and pricing
Modal Close icon
€18.99 billed monthly
Feature tick icon Unlimited access to Packt's library of 7,000+ practical books and videos
Feature tick icon Constantly refreshed with 50+ new titles a month
Feature tick icon Exclusive Early access to books as they're written
Feature tick icon Solve problems while you work with advanced search and reference features
Feature tick icon Offline reading on the mobile app
Feature tick icon Simple pricing, no contract
€189.99 billed annually
Feature tick icon Unlimited access to Packt's library of 7,000+ practical books and videos
Feature tick icon Constantly refreshed with 50+ new titles a month
Feature tick icon Exclusive Early access to books as they're written
Feature tick icon Solve problems while you work with advanced search and reference features
Feature tick icon Offline reading on the mobile app
Feature tick icon Choose a DRM-free eBook or Video every month to keep
Feature tick icon PLUS own as many other DRM-free eBooks or Videos as you like for just €5 each
Feature tick icon Exclusive print discounts
€264.99 billed in 18 months
Feature tick icon Unlimited access to Packt's library of 7,000+ practical books and videos
Feature tick icon Constantly refreshed with 50+ new titles a month
Feature tick icon Exclusive Early access to books as they're written
Feature tick icon Solve problems while you work with advanced search and reference features
Feature tick icon Offline reading on the mobile app
Feature tick icon Choose a DRM-free eBook or Video every month to keep
Feature tick icon PLUS own as many other DRM-free eBooks or Videos as you like for just €5 each
Feature tick icon Exclusive print discounts

Table of Contents

16 Chapters
Part 1: Scaling Tableau Capabilities – Data, Security, and Cloud Excellence Chevron down icon Chevron up icon
Chapter 1: Building Advanced and Efficient Tableau Data Models Chevron down icon Chevron up icon
Chapter 2: Managing Content and Security at Scale in Tableau Chevron down icon Chevron up icon
Chapter 3: Leveraging Tableau Cloud’s Data Management and Advanced Management Chevron down icon Chevron up icon
Part 2: Optimizing Performance and Mastering Complex Calculations Chevron down icon Chevron up icon
Chapter 4: Maximizing Workbook Performance Chevron down icon Chevron up icon
Chapter 5: Mastering Advanced Calculations to Answer Complex Business Questions Chevron down icon Chevron up icon
Part 3: Building Interactive Dashboards and Data Apps Chevron down icon Chevron up icon
Chapter 6: Creating Interactive Dashboards Chevron down icon Chevron up icon
Chapter 7: Interactivity and Zone Visibility: From Dashboards to Data Apps Chevron down icon Chevron up icon
Part 4: Exploring Geospatial Solutions, Developer Tools, and Design Best Practices Chevron down icon Chevron up icon
Chapter 8: Advanced Geospatial and Mapping Use Cases Chevron down icon Chevron up icon
Chapter 9: Extending Tableau with Developer Tools and APIs Chevron down icon Chevron up icon
Chapter 10: Core Techniques for Impactful Data Design Chevron down icon Chevron up icon
Index Chevron down icon Chevron up icon
Other Books You May Enjoy Chevron down icon Chevron up icon
Get free access to Packt library with over 7500+ books and video courses for 7 days!
Start Free Trial

FAQs

How do I buy and download an eBook? Chevron down icon Chevron up icon

Where there is an eBook version of a title available, you can buy it from the book details for that title. Add either the standalone eBook or the eBook and print book bundle to your shopping cart. Your eBook will show in your cart as a product on its own. After completing checkout and payment in the normal way, you will receive your receipt on the screen containing a link to a personalised PDF download file. This link will remain active for 30 days. You can download backup copies of the file by logging in to your account at any time.

If you already have Adobe reader installed, then clicking on the link will download and open the PDF file directly. If you don't, then save the PDF file on your machine and download the Reader to view it.

Please Note: Packt eBooks are non-returnable and non-refundable.

Packt eBook and Licensing When you buy an eBook from Packt Publishing, completing your purchase means you accept the terms of our licence agreement. Please read the full text of the agreement. In it we have tried to balance the need for the ebook to be usable for you the reader with our needs to protect the rights of us as Publishers and of our authors. In summary, the agreement says:

  • You may make copies of your eBook for your own use onto any machine
  • You may not pass copies of the eBook on to anyone else
How can I make a purchase on your website? Chevron down icon Chevron up icon

If you want to purchase a video course, eBook or Bundle (Print+eBook) please follow below steps:

  1. Register on our website using your email address and the password.
  2. Search for the title by name or ISBN using the search option.
  3. Select the title you want to purchase.
  4. Choose the format you wish to purchase the title in; if you order the Print Book, you get a free eBook copy of the same title. 
  5. Proceed with the checkout process (payment to be made using Credit Card, Debit Cart, or PayPal)
Where can I access support around an eBook? Chevron down icon Chevron up icon
  • If you experience a problem with using or installing Adobe Reader, the contact Adobe directly.
  • To view the errata for the book, see www.packtpub.com/support and view the pages for the title you have.
  • To view your account details or to download a new copy of the book go to www.packtpub.com/account
  • To contact us directly if a problem is not resolved, use www.packtpub.com/contact-us
What eBook formats do Packt support? Chevron down icon Chevron up icon

Our eBooks are currently available in a variety of formats such as PDF and ePubs. In the future, this may well change with trends and development in technology, but please note that our PDFs are not Adobe eBook Reader format, which has greater restrictions on security.

You will need to use Adobe Reader v9 or later in order to read Packt's PDF eBooks.

What are the benefits of eBooks? Chevron down icon Chevron up icon
  • You can get the information you need immediately
  • You can easily take them with you on a laptop
  • You can download them an unlimited number of times
  • You can print them out
  • They are copy-paste enabled
  • They are searchable
  • There is no password protection
  • They are lower price than print
  • They save resources and space
What is an eBook? Chevron down icon Chevron up icon

Packt eBooks are a complete electronic version of the print edition, available in PDF and ePub formats. Every piece of content down to the page numbering is the same. Because we save the costs of printing and shipping the book to you, we are able to offer eBooks at a lower cost than print editions.

When you have purchased an eBook, simply login to your account and click on the link in Your Download Area. We recommend you saving the file to your hard drive before opening it.

For optimal viewing of our eBooks, we recommend you download and install the free Adobe Reader version 9.

Modal Close icon
Modal Close icon