How to Use Tableau Prep

Cody Schneider8 min read

Jumping into Tableau for the first time is exciting, but you quickly realize that your raw data is rarely ready for beautiful visualizations. Before you can build those insightful dashboards, you have to clean, shape, and combine your data sources - a process that can eat up hours of your time. This is where Tableau Prep comes in, turning the tedious task of data preparation into a visual, intuitive workflow. This guide will walk you through exactly how to use Tableau Prep to get your data analytics-ready, step by step.

GraphedGraphed

Your AI Data Analyst to Create Live Dashboards

Connect your data sources and let AI build beautiful, real-time dashboards for you in seconds.

Watch Graphed demo video

What is Tableau Prep and Why Do You Need It?

Think of Tableau Prep Builder as the behind-the-scenes hero for your Tableau dashboards. It’s a tool specifically designed to tackle the most common (and frustrating) data issues in a visual, drag-and-drop interface, helping to fix a host of common problems:

  • Inconsistent spelling: Entries like "CA", "Calif.", and "California" in the same column.
  • Incorrect data types: Dates saved as text or numbers saved as strings.
  • Extra whitespace or characters: Unwanted spaces or symbols that throw off your analysis.
  • Structural issues: Data layout that's not ideal for analysis (like wide vs. tall data).
  • Disconnected information: Having sales data in one file and customer info in another with no easy way to merge them.

While you could try to fix these issues with complex Excel formulas or database scripts, Tableau Prep gives you a visual map of your entire data preparation process. Each step you take is a block in a flowchart, making it easy to see how your data is being transformed. This organized workflow is not only simpler to build but also incredibly easy to revisit and update later.

Essentially, Tableau Prep helps you get better, more reliable insights out of your dashboards because it ensures the data going into them is clean, consistent, and correctly structured from the start.

The Tableau Prep Builder Interface: A Quick Tour

Opening Tableau Prep for the first time reveals a clean, structured workspace. Understanding its layout is the first step to mastering your data workflow. The interface is divided into a few key areas:

1. The Connections Pane

Located on the left side, this is your starting point. Here, you'll connect to the files or servers that hold your data. Tableau Prep supports a wide range of connectors, from simple file types like Excel and CSVs to larger databases like SQL Server, Google BigQuery, and Redshift.

Free PDF Guide

AI for Data Analysis Crash Course

Learn how to get AI to do data analysis for you — the best tools, prompts, and workflows to go from raw data to insights without writing a single line of code.

2. The Flow Pane

This is the big, blank canvas at the top of the workspace. As you connect to data and apply cleaning steps, your visual workflow (or "flow") will build out here. Each icon in the flow represents a specific action: connecting to data, cleaning it, joining it, or outputting it. This is where you see the "big picture" of your data prep process.

3. The Profile Pane

Once you add a step to your flow and select it, the Profile Pane in the middle springs to life. It gives you a summarized view of your data fields, showing the distribution of values in each column as a histogram. This is incredibly useful for spotting outliers, inconsistencies, or nulls at a glance without having to scroll through thousands of rows.

4. The Data Grid

At the very bottom, the Data Grid shows your familiar row-level data, like a traditional spreadsheet. This pane works in tandem with the Profile Pane, when you click on a value or a bin in the Profile Pane's histogram, the Data Grid updates to show you only the related rows.

A Step-by-Step Guide to Your First Tableau Prep Flow

The best way to learn is by doing. Let's walk through a common business scenario: preparing sales data for analysis. Imagine you have a CSV file with your monthly sales transactions and a separate Excel file containing information about your sales representatives. Our goal is to clean them up and combine them into one master dataset ready for Tableau Desktop.

GraphedGraphed

Your AI Data Analyst to Create Live Dashboards

Connect your data sources and let AI build beautiful, real-time dashboards for you in seconds.

Watch Graphed demo video

Step 1: Connect to Your Data Sources

First, open Tableau Prep Builder. In the Connections pane on the left, click the plus icon (+). Select Text File to connect to your sales transactions CSV. Once you locate the file, Tableau Prep will automatically add it as an "Input" step in your Flow Pane.

Next, click the plus icon again, but this time select Microsoft Excel and connect to your sales reps file. Another Input step will appear in the flow. You now have two separate data sources loaded into your workspace.

Click on the first Input step (your sales data). In the Profile Pane, you can instantly see a summary of your fields. Maybe the "Order Date" column was read as a string, or the "Product ID" is being treated as a number instead of a text value. You can change the data type by clicking the "Abc" or "#" icon at the top of the column and selecting the correct type (e.g., Date).

Repeat this quick review for your sales rep data source as well.

Step 2: Add a Cleaning Step

Now, let's start tidying things up. Select your sales data input step in the Flow Pane, then click the small plus icon that appears next to it and choose Clean Step. A new step will be added to your flow, and the Profile Pane will become interactive, allowing you to make changes.

Here are a few common cleaning operations you might perform:

  • Renaming Fields: Is a column named "Cust_Name"? Double-click the column header in the Profile Pane and rename it to something clearer, like "Customer Name."
  • Handling Nulls: If you spot null values in the Profile Pane, you can right-click the "Null" bar and decide how to handle them - either filter them out or replace them with a default value.
  • Grouping Values (Fixing Typos): Let's say in your "Region" column, you see entries for "US," "U.S.A.," and "United States." These all mean the same thing. In Tableau Prep, you can click on one value ("US"), hold Ctrl/Cmd, and select the others. Then, right-click and choose Group Values. Prep will merge them into a single, standardized value. This is a massive time-saver for fixing data entry inconsistencies.
  • Removing Unwanted Columns: If there are columns you don't need for your final analysis (e.g., "Notes" or internal IDs), simply right-click the column header and select Remove.

Add a second Clean Step to your salesperson data and tidy it up as well.

Step 3: Combine Your Files with a Join

With both datasets clean, it's time to merge them. We want to add the salesperson's information (like their name and region) to each sales transaction. To achieve this, drag your Sales Data cleaning step onto your Sales Reps cleaning step. Tableau Prep will prompt you to select either a Join or a Union. Since we want to combine them based on common fields, select Join.

A new Join step is created. Now you need to tell Prep how to match the files. In the Join configuration pane that appears, you’ll see the columns from both tables. Find the common field that exists in both tables - for this example, it's most likely Salesperson ID - and select it on both sides. This is called defining the "join clause."

Tableau Prep shows a nice Venn diagram visual showing exactly which records are being matched. You get an immediate summary of matching records and records that do not find a match on either side, allowing for instant troubleshooting.

Free PDF Guide

AI for Data Analysis Crash Course

Learn how to get AI to do data analysis for you — the best tools, prompts, and workflows to go from raw data to insights without writing a single line of code.

Step 4: Performing Calculations & Transformations

Your data is joined and mostly clean, but perhaps more can be done. You might notice the SalePrice and UnitsSold columns and want a Total Revenue column, too. Select the Join step in the Flow Pane again, click the small plus icon, choose Create Calculated Field, and you can directly enter a formula there:

[SalePrice] * [UnitsSold]

You now get an accurate and consistent Total Revenue column for every transaction. No more tedious spreadsheet gymnastics!

Step 5: Generating the Output

The final step is creating the output which you will connect to your Tableau workbooks. With a step still selected, click on that ever-present plus button again and pick Output. This adds your final step into the flow. In its configuration panel, give a logical name for the output file, for example, "Monthly Sales Analysis Dataset." Then, define where you’ll save this file and in what format. For optimal performance when using Tableau Desktop, it is recommended to save as a .Hyper Extract (Hyper), which is Tableau’s proprietary, highly compressed, fast data format. Finally, click "Run Flow" to execute the entire process from data input and cleaning to joining and saving, giving you a perfect clean dataset.

Final Thoughts

Preparing data with Tableau Prep can be a transformative experience, turning what can often be a tedious task into an intuitive, visual process. By cleaning and structuring your data before it ever hits your dashboards, you ensure accurate analysis and meaningful insights every time. Whether you're dealing with spelling inconsistencies, structural issues, or mismatched data types, Tableau Prep's intuitive flow and easy transformations help you tackle complex data challenges with ease.

Related Articles