Audience and outcome
For analysts receiving spreadsheets or multi-sheet files. The goal is a dependable Tableau source whose grain, fields and missing values are understood before visualization.
1. Establish the grain
Write one sentence describing what a row represents: one row per province and year, order line, customer-day, etc. This grain determines whether later sums, averages and counts are meaningful. Inspect repeated headers, report titles, totals mixed with details, merged cells, blank separators, and dates or identifiers stored as text. Keep an untouched copy of the source.
2. Reshape presentation tables
A sheet with one column per year is convenient for reading but often awkward for analysis. Prefer one row per observation and one column per attribute.
| Province | 2022 | 2023 |
|---|---|---|
| North | 120 | 135 |
| South | 90 | 102 |
becomes:
| Province | Year | Expenditure |
|---|---|---|
| North | 2022 | 120 |
| North | 2023 | 135 |
| South | 2022 | 90 |
| South | 2023 | 102 |
In Tableau's data source workspace, select repeated measure columns and use Pivot where appropriate. Rename generated fields and compare row counts before and after. A pivot should reshape observations, not silently discard them.
3. Treat missing values explicitly
Blank is not automatically zero. Zero means a measured quantity is none; null means unknown, unavailable or not applicable. Replacing all blanks with zero can bias averages and create false trends. Define a rule per field: replace only when the source definition means none, retain unknowns, exclude records only under a documented business rule, and log every transformation.
4. Combine sheets with key validation
Identify whether the relationship is one-to-one, one-to-many or many-to-many. Test key completeness, uniqueness where expected, consistent formatting and unmatched values. After a join, compare row counts and a known control total. A doubled total often indicates duplicated keys or a join that multiplied records.
5. Validate in Tableau
Inspect field names, types and sample rows. Dates should be dates, measures numeric, and identifiers should not accidentally become measures. Create a reconciliation worksheet showing row count, distinct business keys, a stable measure total and null counts for critical fields. Compare sample records with the original workbook.
6. Troubleshooting
Totals too high: inspect join cardinality, duplicate keys and subtotal rows. Pivot creates many nulls: check whether selected columns share a meaning and whether headers are clean. Dates parsed as text: inspect locale formats and mixed values; normalize and verify. Locations not recognized: use stable geographic identifiers and investigate ambiguous names rather than guessing.
Release checklist
Retain the raw file; document grain, transformations, join keys and null handling; save reconciliation results; and rerun checks whenever the source refreshes. A familiar filename does not guarantee an unchanged schema.
Official references
- Pivot Data from Columns to Rows Checked November 14, 2026
- Clean and Shape Data Checked November 14, 2026
What changed
- v1.0.0Initial complete bilingual guide created from the documented source material and checked against supporting technical references.