Search icon
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletters
Free Learning
Arrow right icon
Mastering Tableau 2023 - Fourth Edition

You're reading from  Mastering Tableau 2023 - Fourth Edition

Product type Book
Published in Aug 2023
Publisher Packt
ISBN-13 9781803233765
Pages 684 pages
Edition 4th Edition
Languages
Author (1):
Marleen Meier Marleen Meier
Profile icon Marleen Meier

Table of Contents (19) Chapters

Preface 1. Reviewing the Basics 2. Getting Your Data Ready 3. Using Tableau Prep Builder 4. Learning about Joins, Blends, and Data Structures 5. Introducing Table Calculations 6. Utilizing OData, Data Densification, Big Data, and Google BigQuery 7. Practicing Level of Detail Calculations 8. Going Beyond the Basics 9. Working with Maps 10. Presenting with Tableau 11. Designing Dashboards and Best Practices for Visualizations 12. Leveraging Advanced Analytics 13. Improving Performance 14. Exploring Tableau Server and Tableau Cloud 15. Integrating Programming Languages 16. Developing Data Governance Practices 17. Other Books You May Enjoy
18. Index

Using Tableau Prep Builder

Tableau Prep Builder was introduced with version 2018.1 of Tableau Desktop, but what can we use Tableau Prep Builder (henceforth referred to in this chapter as Prep) for? The core purpose of the tool is data preparation. The good news is, Prep is fully compatible with Tableau Desktop, and also with Tableau Server. That means you can execute jobs in Prep to clean your data with the click of a button. Additionally, Prep is as visual as its big brother, Tableau Desktop, meaning that you can see every step of data preparation in a fully visual format.

Therefore, let’s dive into the Graphical User Interface (GUI) and be amazed by another high-end product, which will allow you to get initial data insights, enabling you to decide faster whether your dataset is worth analysis. Prep will pave the way for an even smoother Tableau Desktop experience.

In this chapter, the following topics will be discussed:

  • Connecting to data
  • The Prep...

Connecting to data

If you are familiar with Tableau Desktop, Prep will be an easy game for you. The handling and interfaces are very similar, and connecting to data, if the connector is available in Prep, works the same whether it’s a text file, a database, or an extract. At first sight, you might not even notice a difference between Prep and the Tableau Desktop GUIs, which provides the handy advantage that you can start prepping right away.

To get started, begin by opening Prep and click on + to open a file. The following screen will appear:

Figure 3.1: Connecting to data

From the preceding screenshot, we can see that you can choose the type of data you want to connect to in the search bar. Just as in Tableau, the repertoire of Prep includes multiple databases.

Now let’s connect to a dataset with a practical exercise. For this exercise, we need the following dataset: https://www.kaggle.com/airbnb/boston. Please download calendar.csv, listings.csv...

The Prep GUI

User experience is an important topic, not only when you build a dashboard but also when you use other aspects of Tableau. One of the biggest selling points of Tableau is and has always been the ease of using the GUI, and it is only one of the reasons Tableau is a much-loved tool by its customers.

The Prep GUI has two important canvases to look at. Right after you have connected data to Prep, the workspace will split into several parts:

Graphical user interface, text, application  Description automatically generated

Figure 3.3: Prep workspace sections

Let’s look at what we can see from the preceding screenshot:

A: The connection pane, showing you the input files available at the location selected.

B: The flow pane, which shows your current Prep flow. This always starts with an input step.

C: The input pane settings, which give you several options to configure your input.

D: The input pane samples, showing the fields you moved to the connection pane, including sample values.

In the input pane (C), you can...

Data quality

Prep comes with lots of different features. Sometimes, you might use many different tools to prepare your dataset in order to get it in the shape you desire. Other times, you might just run an aggregation (one feature) and be done. It really depends on the dataset itself and the expected output. The fact is, the closer your Prep output data is to what you need for your Tableau Desktop visualization, the more efficiently VizQL will run on Tableau Desktop. Fewer queries in Tableau Desktop means faster generation of dashboards.

To me, the best part about Prep is that it can handle a huge amount of data. Sometimes, I even use it for datasets I don’t want to visualize in Tableau Desktop, just to get a quick overview of, for example, how many rows contain a specific word, how many columns are needed, what happens to the date range if I filter a particular value, and so on! Within a few minutes, I have insights that would have taken me much more time to get with database...

Additional options with Prep

This section will discuss some smaller standalone, very powerful, and new Prep features. Some of you might have been using Prep since the very first release. With each release and each additional user and feedback given, Tableau was able to create a priority list of features that stakeholders—like you and I—really wished to see. The upcoming topics are some of the best examples. None of these features were present in the initial release but have made the product so much better, more valuable, and more complete. You are able now to save part of your flow and reuse it, write back your data to an external database, refresh parts of your dataset, and schedule flows with the Tableau Data Management add-on. Let’s take a closer look and start with the “insert flow” function.

Insert Flow

An option in Prep is to add an existing flow to your own flow. For example, say someone already worked on the Boston Airbnb dataset...

Exporting data

Last, but not least, we may want to export our data. We have seen before that a right-click on a symbol in the flow pane offers the possibility to preview the data in Tableau Desktop:

  1. If you want a flow to run according to a schedule or save it to a location, it’s best to use Add | Output.
  2. After you do this, the following screen will appear:

Figure 3.54: Save to file

  1. The user now has the option to save the data to a file, and also to save it in Hyper file format as .hyper, as .xlsx (new in Tableau 2021.1), or as a .csv file.
  2. Another option is to publish the newly generated data source directly to Tableau Server and make it available to other users. For this option, select Publish as a data source instead of Save to File from the dropdown.
  3. A third option to save Prep output has been added to Tableau 2020.3: writing the resulting data to an external database. If you want to do so, select the Database table option...

Summary

We started this chapter with an introduction to Prep. We looked at the GUI and how we can connect data to it. After that, we did some exercises regarding data preparation. This can be divided into five parts: data cleaning, unions and joins, aggregating, pivoting, and scripting. We also considered several additional options to improve the usefulness of your data, including inserting steps from other flows, and incremental refreshes. To round out this chapter on Prep, we looked at exporting data. Here, we saw that the new dataset can be saved as a file or data extract, written back to an external database, or pushed directly to Tableau Server.

Just like Tableau Desktop, Prep is very much self-explanatory and highly visual. Colors, symbols, and highlights make it easy to get used to this extract, transform, and load tool, which is invaluable for preparing your data before manipulating it on the main Tableau interface!

In the next chapter, we’ll continue our exploration...

lock icon The rest of the chapter is locked
You have been reading a chapter from
Mastering Tableau 2023 - Fourth Edition
Published in: Aug 2023 Publisher: Packt ISBN-13: 9781803233765
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 $15.99/month. Cancel anytime}