01 / 20

Documentation
& Definitions

Learn how to build data dictionaries, write clear metric definitions, and document assumptions so every Tableau dashboard tells a trustworthy story.

Tableau

Why Documentation Matters

Every Tableau workbook sits on top of data. If two analysts interpret the same field differently, the same dashboard can produce contradictory conclusions. Documentation is the single source of truth that prevents this.

The Three Pillars of Documentation

Data Dictionary
A catalog of every field: its name, data type, allowed values, and source table.
Metric Definitions
Precise descriptions of calculated measures: what's included, what's excluded, and how it's aggregated.
Assumptions Log
A record of every decision that shaped the data: filters applied, null handling, date ranges, and business rules.

What Is a Data Dictionary?

A data dictionary is a structured reference that describes every column (field) in your data source. It answers three questions for each field:

1
What is it? Field name and a plain-language description.
2
What type is it? String, integer, date, boolean, or continuous measure.
3
Where does it come from? Source system, table, and any transformations applied before Tableau.

Anatomy of a Data Dictionary Entry

Data Dictionary Entry Field Name order_date Data Type DATE Description Date the customer placed the order Source sales_db.orders Allowed Values Any valid date; NULLs indicate pending orders

What Is a Metric Definition?

A metric definition spells out exactly how a calculated value is computed. It removes ambiguity by specifying the formula, inclusions, exclusions, and aggregation level.

Structure of a Metric Definition

Metric Definition Name + Formula
\( \text{Net Revenue} = \text{SUM(Sales)} - \text{SUM(Returns)} \)
Granularity Aggregated per month, per product category Scope Includes: completed orders Excludes: cancelled, test data Owner: Finance Team Last updated: Q4 2024 Refresh: Weekly Every Monday 6 AM Null Handling NULLs treated as $0

Data Dictionary vs Metric Definition

Data Dictionary Metric Definition
Focus Raw fields (columns) Calculated measures
Answers "What does this field mean?" "How is this number computed?"
Contains Name, type, source, allowed values Formula, scope, granularity, owner
Audience Data engineers + analysts Analysts + business stakeholders
Example order_date: DATE Net Revenue: \( \text{SUM(Sales)} - \text{SUM(Returns)} \)

The Assumptions Log

An assumptions log records every decision that could change the numbers. Without it, future analysts cannot reproduce or validate your work.

Filter Decisions
"We excluded orders before 2020-01-01 because data was incomplete."
Null Handling
"NULL discount values are treated as 0% discount, not excluded."
Business Rules
"An 'active customer' has at least one purchase in the last 90 days."

How to Build Your Documentation

1
Inventory your data source. List every field Tableau sees in the connection.
2
Write a data dictionary entry for each field: name, type, description, source, and allowed values.
3
Define every calculated field. State the formula, what it includes/excludes, granularity, and owner.
4
Log all assumptions. Every filter, null decision, and business rule gets a dated entry.
5
Attach docs to the workbook. Use Tableau's dashboard description field, a linked spreadsheet, or a companion wiki page.

Example 1: Sales Data Dictionary

Field Type Description
customer_id INT Unique identifier per customer
order_date DATE Date order was placed
sales_amount FLOAT Revenue in USD before returns
region STRING Geographic sales region (East, West, Central, South)

Example 2: Defining Profit Margin

Metric: Profit Margin (%)
Formula: \( \left( \frac{\text{SUM(Profit)}}{\text{SUM(Sales)}} \right) \times 100 \)
Includes: All completed and shipped orders
Excludes: Cancelled orders, internal test accounts
Granularity: Monthly, by product sub-category
NULL handling: Rows with NULL profit are excluded from both numerator and denominator
Owner: Analytics Team — updated quarterly

Example 3: Assumptions Log in Practice

2024-09-01 Excluded pre-2020 data: migration errors made it unreliable. 2024-09-05 NULL ship_date = order not yet shipped (not missing data). 2024-09-12 "Active customer" = at least 1 purchase in last 90 days. 2024-10-01 Currency conversion uses end-of-month exchange rate, not daily.

Where to Store Documentation

1
Field comments in Tableau: Right-click a field, go to "Default Properties", and add a "Comment". It appears in tooltips for other users.
2
Dashboard description: Use the built-in description pane to summarize purpose, data sources, and refresh schedule.
3
Linked external docs: A shared spreadsheet or wiki page linked from the dashboard subtitle for full data dictionaries and assumptions logs.
4
Tableau Catalog (Data Management Add-on): For enterprise teams, Catalog auto-inventories fields and lets you attach certified definitions.

Common Mistakes

✕ Vague Descriptions
Writing "revenue" without specifying gross, net, or after-discount leads to conflicting dashboards.
✕ Undocumented Filters
Applying a filter (e.g., excluding test accounts) without logging it means no one can reproduce your results.
✕ Stale Documentation
A data dictionary that was last updated a year ago may describe fields that no longer exist or have changed meaning.

Documentation Summary

Document Purpose Key Contents Update Cadence
Data Dictionary Describe raw fields Name, type, source, values On schema change
Metric Definition Clarify calculated measures Formula, scope, granularity On logic change
Assumptions Log Record decisions Filters, nulls, business rules On every decision

Question 1 of 5

Which of the following is the primary purpose of a data dictionary?

Question 2 of 5

A metric definition for "Net Revenue" should include all of the following except:

Question 3 of 5

An analyst excludes all orders before January 2020 because the old data had migration errors. Where should this decision be recorded?

Question 4 of 5

In Tableau, which feature lets you add a plain-language description to a specific field that other users see on hover?

Question 5 of 5

Which scenario best illustrates the risk of stale documentation?