Understanding
Granularity
Master the level of detail in your data and discover why it fundamentally changes every calculation, aggregation, and visualization in Tableau.
What Is Granularity?
Granularity (also called level of detail) describes what one row of your data represents. It answers the question: "What is the most specific thing each record tells me about?"
Why Granularity Matters
Granularity controls every number Tableau computes. When you drag a dimension onto a shelf, you are changing the granularity of the view, and that changes what SUM, AVG, COUNT, and every other aggregation returns.
The Zoom Lens Analogy
The Core Granularity Rule
When you place Category on Columns, Tableau creates one bucket per category. If you then add Region, each Category+Region combination becomes its own bucket. More dimensions on the shelf = finer granularity = more marks.
Dimensions vs. Measures
In Tableau, fields fall into two roles that directly relate to granularity:
Row-Level vs. Aggregated Data
| Row-Level (Source) | Aggregated (View) | |
|---|---|---|
| What it is | Raw data before Tableau groups it | Data after Tableau applies SUM, AVG, etc. |
| Controlled by | Your data source structure | Dimensions on shelves |
| Row count | Fixed (one per record) | Changes as you add/remove dimensions |
| Example | 1 row = 1 order line | 1 row = 1 region total |
How Tableau Sets Granularity
Every pill you place on Rows, Columns, Color, Size, Detail, or any other shelf participates in defining the grain. Here is the order of operations:
How to Determine Your View's Grain
Example 1: Category-Level View
Example 2: Adding Region
Example 3: The AVG Trap
Imagine computing AVG(Sales). At the order level (fine grain), you average individual transactions. But if your data has been pre-aggregated to monthly totals, you are averaging averages: a completely different number.
The Detail Shelf
Placing a dimension on the Detail shelf increases granularity without creating separate bars, colors, or axes. It's an "invisible splitter."
Joins Change Granularity
LOD Expressions: Overriding the Grain
Tableau's Level of Detail (LOD) expressions let you compute aggregations at a granularity different from the view. They break free from the dimensions on the shelves.
{FIXED [Customer Name] : SUM([Sales])}
Common Mistakes
Granularity Cheat Sheet
| Action | Effect on Grain | Result |
|---|---|---|
| Add dimension to shelf | Finer | More marks, smaller aggregations |
| Remove dimension from shelf | Coarser | Fewer marks, larger aggregations |
| Dimension on Detail | Finer | More marks, no visual change |
| FIXED LOD expression | Independent | Computes at specified grain |
| Join (one-to-many) | Finer (often unwanted) | Duplicated rows, inflated totals |
| Data blending | Controlled | Grain set by linking fields |
Key Takeaways
Let's Test Your Understanding
The next 5 questions will check your conceptual understanding of granularity in Tableau. Focus on what changes when dimensions are added, removed, or computed at different levels.
Question 1 of 5
You have Category on Columns and SUM(Sales) on Rows, producing 3 bars. You then add Region to the Color shelf. What happens to the number of marks?
Question 2 of 5
A dataset has 1,000 individual order rows. You build a view with only SUM(Sales) on Rows and nothing on Columns. How many marks does Tableau show?
Question 3 of 5
You join an Orders table (100 rows) with a Returns table where some products have multiple return records. After the join, you notice SUM(Sales) is higher than expected. What is the most likely cause?
Question 4 of 5
What does the Tableau LOD expression {FIXED [Customer] : SUM([Sales])} compute, and how does it relate to the view's granularity?
Question 5 of 5
You place Customer Name on the Detail shelf (not on Rows or Columns). Your bar chart looks identical but now has 793 marks instead of 3. Which statement is true?