Documentation
& Definitions
Learn how to build data dictionaries, write clear metric definitions, and document assumptions so every Tableau dashboard tells a trustworthy story.
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
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:
Anatomy of a Data Dictionary Entry
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
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.
How to Build Your Documentation
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
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
Where to Store Documentation
Common Mistakes
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?