Table Calculations:
Compute Using
Master Addressing and Partitioning to control exactly how Tableau's table calculations traverse your data.
What Are Table Calculations?
Table calculations are computations that Tableau applies after the initial query returns results. Unlike row-level or aggregate calculations, they operate on the values already visible in your view: the marks Tableau has drawn on screen.
The critical question is: in what order and over what scope does Tableau walk through those marks? That's where Compute Using comes in.
The Data Grid Mental Model
Imagine your view as a grid of cells. Each row and column header is a dimension. The numbers inside each cell are measures. A table calculation must decide which direction to walk.
Addressing vs Partitioning
The Core Rule
When you right-click a table calculation pill and choose "Edit Table Calculation", Tableau shows you a list of all dimensions in the view. You check the ones you want as Addressing (called "Specific Dimensions"). Everything else automatically becomes Partitioning.
Quick Options vs Specific Dimensions
How Compute Using Works
Table Across vs Specific Dimensions
| Table (Across) | Specific Dimensions | |
|---|---|---|
| Definition | Addresses all columns automatically | You pick exact dimensions to address |
| Fragility | High: rearranging pills changes behavior | Low: stable regardless of layout |
| Nested Dims | Can produce unexpected traversal order | You control traversal order explicitly |
| When to Use | Quick exploration only | Production dashboards, always |
How to Set Compute Using
Example 1: Running Total by Quarter
Scenario: You have a crosstab with Region on Rows and Quarter on Columns, showing SUM(Sales). You want a running total across quarters, restarting for each region.
Example 2: Percent of Total Down
Scenario: Same view: Region on Rows, Quarter on Columns. You want each region's sales as a percent of the column total for that quarter.
Example 3: Two Addressing Dimensions
Scenario: Your view has Category on Rows, and both Year and Quarter on Columns (nested). You want RANK across all time periods within each category.
The "At the Level" Option
When you check multiple addressing dimensions, the "At the level" dropdown appears. It controls the innermost dimension where values are computed before being aggregated up.
Restarting Every
The "Restarting every" option lets you add a sub-partition within the addressing dimensions. The calculation resets at each boundary of the selected dimension.
Common Mistakes
Summary Reference
| Addressing | Partitioning | |
|---|---|---|
| Also Called | "Compute Using" | "Compute For" |
| What It Does | Defines the direction of travel | Defines independent groups |
| In the Dialog | Checked dimensions | Unchecked dimensions |
| Calc Behavior | Calc moves through these | Calc restarts for each of these |
| Example | Quarter → running sum accumulates | Region → running sum resets |
Question 1 of 5
You have Region on Rows and Month on Columns. You apply RUNNING_SUM and set Compute Using: Month. What is the partitioning dimension?
Question 2 of 5
Why is Specific Dimensions preferred over quick options like "Table Across"?
Question 3 of 5
Your view has Category on Rows, Year and Quarter on Columns. You want RANK across all quarters and years for each category. Which dimensions should you check in Edit Table Calculation?
Question 4 of 5
You have a table calculation that should compute percent of total down each column. The view has Region on Rows and Quarter on Columns. What is the correct addressing dimension?
Question 5 of 5
A dimension is on the Detail shelf (not on Rows or Columns). Does it affect your table calculation's Compute Using?