Dimensions vs.
Measures
Master the foundational building blocks of Tableau: understand how dimensions describe your data and measures quantify it, plus the critical role of discrete vs. continuous fields.
Every Column Is a Field
When you connect to data in Tableau, each column in your dataset becomes a field in the Data pane. Tableau automatically classifies every field into one of two fundamental roles:
Dimensions: The Labels of Your Data
Dimensions are independent, categorical variables. They slice your data into groups. When you drag a dimension onto a shelf, Tableau creates headers or partitions for each unique value.
Measures: The Numbers You Aggregate
Measures are dependent, quantitative variables. When placed on a shelf, Tableau automatically aggregates them: by default it computes \(\text{SUM}\), but you can change this to \(\text{AVG}\), \(\text{COUNT}\), \(\text{MIN}\), \(\text{MAX}\), \(\text{MEDIAN}\), and more.
The Second Axis: Discrete vs. Continuous
Beyond dimension/measure, Tableau has a second classification that controls how fields appear on the shelf. This is the discrete vs. continuous distinction, and it's indicated by pill color:
The 2 x 2 Classification Grid
Most beginners think dimensions are always discrete and measures are always continuous. That's the default, but not a rule. All four combinations are possible:
How Discrete and Continuous Affect Views
Role vs. Type: Two Independent Axes
This is the most important distinction to internalize. Dimension/Measure is the field's role: what it does in the visualization. Discrete/Continuous is the field's type: how it's displayed. They are independent choices.
| Role (Dimension / Measure) | Type (Discrete / Continuous) | |
|---|---|---|
| What it controls | How data is partitioned vs. aggregated | How the field is displayed on the view |
| Visual indicator | Position in Data pane (above or below line) | Pill color (blue or green) |
| Can be changed? | Yes, right-click: "Convert to..." | Yes, right-click: "Discrete" or "Continuous" |
| Default pairing | Dimensions: usually discrete | Measures: usually continuous |
Dates: The Shape-Shifter
Date fields are the most common example of a dimension that can be either discrete or continuous. This single concept causes more confusion than any other in Tableau.
Step-by-Step: Classifying a Field
Example 1: Sales by Region
You want a bar chart showing total sales for each region. Identify what goes where:
Example 2: Sales Trend Over Time
You want a line chart showing how sales change over time. Here is where the discrete vs. continuous choice on a date dimension changes your chart entirely:
Example 3: When Measures Become Discrete
Imagine you drag Profit to the Color shelf. If Profit is continuous, you get a gradient from red to blue. If you switch it to discrete, Tableau bins the values into distinct color buckets.
Aggregation: The Measure's Superpower
Measures are aggregated at the level of detail defined by the dimensions in the view. Add more dimensions = more granularity = smaller groups:
Common Mistakes to Avoid
Summary Comparison Table
| Dimension | Measure | |
|---|---|---|
| Role | Categorizes / partitions data | Quantifies / aggregates data |
| Data type | Strings, dates, booleans (usually) | Numbers (usually) |
| Default behavior | Discrete (blue pill) | Continuous (green pill) |
| On shelf produces | Headers / labels | Axes / aggregated values |
| Aggregation | Groups rows | \(\text{SUM}\), \(\text{AVG}\), \(\text{COUNT}\), etc. |
| Examples | Category, Region, Date, Name | Sales, Profit, Quantity, Discount |
| Can switch type? | Yes: can become continuous | Yes: can become discrete |
Question 1 of 5
In Tableau, what does a blue pill on a shelf indicate about the field?
Question 2 of 5
A field labeled "Zip Code" contains numeric values like 10001, 90210, 60614. How should it be classified in Tableau?
Question 3 of 5
You place YEAR(Order Date) on Columns as a continuous field and \(\text{SUM}(\text{Sales})\) on Rows. What type of chart does Tableau produce?
Question 4 of 5
Which statement best describes the relationship between dimension/measure and discrete/continuous?
Question 5 of 5
When you add more dimensions to a Tableau view that already contains a measure, what happens to the aggregation?