Blog / Tableau Prep: How to Clean and Prepare Data Before Your First Chart
Tableau Prep: How to Clean and Prepare Data Before Your First Chart
Short version: Most Tableau dashboards that "look wrong" are not broken dashboards — they are broken data. Blank rows, three different spellings of the same customer name, dates stored as text, and a spreadsheet where somebody merged cells for readability. Tableau Prep exists to fix exactly that, visually and repeatably, before the data ever reaches a worksheet. This guide walks the shape of a real cleaning flow, the decisions that matter at each step, and how it connects to the data-preparation skills you build in our WSQ Tableau Desktop Foundations course.
Why data preparation is the job, not the prelude
Ask any working analyst where their week goes and you will hear the same answer: not in building charts, but in getting the data into a state where a chart can be trusted. The reason is structural. Tableau is fastest when it is handed tidy data — one row per observation, one column per field, consistent types, no merged header rows. Real operational exports are almost never that. They arrive as monthly CSVs with slightly different column names, as an Excel workbook with a title banner in the first four rows, or as two systems that both claim to hold "the customer list".
You can paper over some of this inside Tableau Desktop with calculated fields and aliases. That works for one workbook. It falls apart the moment a second analyst needs the same cleaned data, or the same file arrives next month with a new quirk. What you actually want is a documented, re-runnable preparation step that sits between the raw source and the workbook — which is precisely what Tableau Prep gives you.
The mental model: a flow, not a script
Tableau Prep is built around a flow: a left-to-right diagram of the operations that turn raw input into clean output. Each box is a step, each line shows data moving forward. The point of the visual layout is that the transformation is readable by someone who did not build it — which is the part a Python cleaning script almost never achieves.
The step types you will actually use are few, and worth knowing by name before you open the tool:
- Input — the ingestion point and the start of every flow. Points at a file, a database table, or a published data source.
- Clean — where the real work happens: filter, rename, split, group, change data types, fix values.
- Union — stacks tables with the same shape on top of each other. Twelve monthly files becoming one year of data.
- Join — combines two sources side by side on a common field. Orders plus the customer table.
- Aggregate — changes the level of detail, rolling transactions up to a daily or monthly grain.
- Output — writes the result out as an extract or a published data source for Tableau Desktop to consume.
Almost every practical cleaning job is some arrangement of those six.
The Profile pane is the part that changes how you work
When you add a Clean step, Tableau Prep splits the workspace into three regions: the Flow pane at the top, the Profile pane in the middle, and the Data grid below. The Profile pane is the one that matters most, and it is the single biggest reason to prepare data here rather than in a spreadsheet.
Instead of showing you rows, the Profile pane summarises each field into bins of values, so you see the distribution of every column at a glance. This turns data-quality inspection from a needle-in-a-haystack search into simple looking. Three classes of problem become visible immediately:
- Outliers — a bar sitting far away from the rest of the distribution. The order quantity of 99,999 that somebody typed as a placeholder.
- Nulls — surfaced as their own group rather than hidden among thousands of rows, so you can decide whether to filter, fill, or investigate them.
- Inconsistent categories — "Singapore", "singapore", "S'pore" and "SG" appearing as four separate bars when they are obviously one value.
That last one is where Prep earns its keep. You select the variants, group them, and every downstream row is corrected — recorded as a step, not as a one-off edit. Note that if you want to edit a value in-line, you have to do it in the Profile pane specifically; the Data grid below is for reading rows, not fixing them.
A realistic cleaning flow, step by step
Here is the shape of a flow for a genuinely messy sales export — the kind of file that actually lands in an analyst's inbox.
- Input the raw file. Connect to the Excel workbook or CSV. If the sheet has a title banner above the real header row, use the data interpreter so Prep reads the correct row as your field names instead of importing
Column1,Column2. - Add a Clean step and read the Profile pane before touching anything. Resist the urge to start fixing. Look first: which fields have nulls, which have suspicious distributions, which are typed as text when they should be dates or numbers. Five minutes of looking saves an hour of rework.
- Fix data types. Dates arriving as strings are the most common single defect in a spreadsheet export, and they break every time-series chart downstream. Set the type here, once, rather than writing a
DATEPARSEcalculation in every workbook that touches this data. - Group and clean inconsistent values. Use grouping to collapse the spelling variants, and remove leading and trailing whitespace — invisible spaces are a notorious cause of "why are there two of the same customer" in a Tableau view.
- Split fields that hold more than one thing. A "Location" column containing
Singapore - Northshould become country and region as separate fields, because you cannot filter or colour by half a string. - Filter out what does not belong. Test rows, cancelled orders, dates outside the reporting period. Filtering here rather than in the workbook means every analyst who uses this data gets the same definition of "valid".
- Union or join to bring in the rest. Union the twelve monthly files, then join the customer table for the attributes you need. Check the join result immediately — a join that silently drops rows because the key has trailing whitespace on one side is the classic Prep bug, and the row counts in the pane will show it.
- Aggregate only if the workbook needs it. If your dashboard reports monthly, rolling transactions up to a monthly grain here makes the extract dramatically smaller and the dashboard faster. If analysts need to drill to transaction level, skip this — you cannot un-aggregate later.
- Output for Tableau Desktop. Write a Hyper extract or a published data source. Everyone who builds on it starts from the same clean foundation.
Five habits that separate a working flow from a fragile one
The mechanics above are easy to learn. The judgement below is what stops a flow from breaking three months later.
- Clean upstream, not in the workbook. Every fix you make with a calculated field inside a single workbook is a fix nobody else inherits. A rule of thumb: if the correction would be true for any use of this data, it belongs in Prep.
- Rename fields for humans while you are there.
CUST_NM_1means nothing to a business user browsing the data pane. Renaming costs seconds in Prep and saves every future dashboard builder a lookup. - Check row counts after every join. The number in the pane after a join should match your expectation. If it grew, your key is not unique and you have created duplicate rows — which will quietly inflate every sum in the dashboard.
- Do not filter away data you might need. Filtering at the Prep stage is powerful and permanent for downstream users. Filter for correctness (test rows, corrupt records); leave the analytical filtering (this region, this quarter) to the workbook.
- Give steps meaningful names. A flow of eight boxes labelled "Clean 1" through "Clean 8" is unreadable in a month. Name them for what they do: "Standardise country names", "Drop cancelled orders".
How this connects to Tableau Desktop
Prep and Desktop are two halves of one workflow. Prep produces a trustworthy data source; Desktop turns it into analysis people act on. Understanding the preparation half makes you measurably better at the visualisation half, because you stop trying to solve data problems with chart tricks.
That is exactly the sequence our WSQ Tableau Desktop Foundations course follows. It is a 2-day, 16-hour beginner course, and it opens with data preparation before it touches dashboards:
- Topic 1: Connecting to and Preparing Data in Tableau Desktop — identifying data sources, meeting data-quality standards, getting the data into shape.
- Topic 2: Exploring and Analyzing Data — organising data into effective visual elements.
- Topic 3: Sharing Insights with Dashboards and Workbooks.
- Topic 4: Understanding Tableau Concepts and Certification Preparation.
The learning outcomes are written around this same discipline — identifying data sources to meet analysis requirements and data-quality standards, performing database queries to extract and process data sets, and processing data using standard procedures to deliver meaningful insights. The course maps to the Data Analytics Technical Skills and Competency (TSC ATP-PIN-2001-1.1) under the Skills Framework, and is assessed by a written and a practical exam.
Funding for Singapore learners
Tableau Desktop Foundations (course code TGS-2025053175) is a WSQ-funded course, so the out-of-pocket cost is well below the full fee for eligible learners. Singapore Citizens and PRs can claim SSG course-fee funding, Singapore Citizens aged 25 and above can offset the remainder with SkillsFuture Credit, and employer-sponsored learners may be able to use SFEC. Union members can check UTAP eligibility with NTUC directly.
Funding for this course is valid from 25 February 2025 to 24 February 2027 — you need to register and complete the course within that window to qualify for support. The current fee, subsidy tiers and available class dates are always live on the course page.
Frequently asked questions
Do I need Tableau Prep to clean data, or can I do it in Tableau Desktop?
You can do a fair amount inside Tableau Desktop using calculated fields, aliases, groups and data-source filters, and for a single workbook that is often enough. Tableau Prep becomes the better choice when the cleaning needs to be reused across workbooks, repeated on a recurring file, or explained to someone else — because the flow documents itself visually and re-runs on new data.
Does the Tableau Desktop Foundations course teach data preparation?
Yes. Topic 1 is dedicated to connecting to and preparing data, covering how to identify data sources that meet analysis requirements and data-quality standards. Note that the course is taught in Tableau Desktop — the Prep Builder concepts in this article are the wider context for why those preparation skills matter, not a separate module of the syllabus.
What is the Profile pane and why does everyone mention it?
It is the middle region of the Tableau Prep workspace, and it summarises each field's values into bins instead of showing raw rows. That makes nulls, outliers and inconsistent spellings visible at a glance rather than something you have to go hunting for. It is also the only place you can edit a value in-line.
How long is the course and what level is it?
Two days, 16 hours of instruction plus a 2-hour assessment, at beginner level. The entry requirement is basic computer literacy, a minimum of 3 GCE 'O' Level passes including English (or WPL Level 5), and about a year of working experience.
Is it WSQ funded, and can I use SkillsFuture Credit?
Yes on both counts for eligible learners. It is a WSQ course (TGS-2025053175) with SSG course-fee funding for Singapore Citizens and PRs, and Singapore Citizens aged 25 and above can apply SkillsFuture Credit to the balance. Funding validity runs to 24 February 2027. Exact subsidy tiers are shown on the course page.
What roles does this lead to?
The course targets data analyst, business intelligence analyst, data visualisation specialist, reporting analyst and dashboard designer roles, among others. Data preparation is the skill those roles use daily, whatever the job title says.
Start with the data, not the dashboard
The analysts who produce dashboards people actually trust are not the ones who know the most chart types. They are the ones who know their data is right — because they inspected the distributions, fixed the types, standardised the categories and checked the row counts before building anything. That is a learnable discipline, and it is where a Tableau education should start.
Ready to build it properly? Register for WSQ Tableau Desktop Foundations — 2 days, 16 hours, beginner level, WSQ funded, with hands-on practice from data preparation through to publishing a dashboard.