SaTracking
Data visualizationNEWIntermediate

Prepare trustworthy data sources for Tableau analysis

Shape granular spreadsheet data, resolve structural defects and validate a Tableau source before building views.

Download for AI (.txt)

Measurement topic illustration · SaTracking

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.

Province20222023
North120135
South90102

becomes:

ProvinceYearExpenditure
North2022120
North2023135
South202290
South2023102

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

EDITORIAL HISTORY

What changed

  1. v1.0.0
    Initial complete bilingual guide created from the documented source material and checked against supporting technical references.
MEASUREMENT SUPPORT

Need a hand with your tracking?

Nicolas Salazar works with teams on analytics, tracking plans, data quality, consent, and implementation.