01 / 20

Table Calculations:
Compute Using

Master Addressing and Partitioning to control exactly how Tableau's table calculations traverse your data.

Tableau

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.

Q1 Q2 Q3 East West South 120 150 180 90 110 130 70 85 95 Addressing: across (Quarter) Partition: Region

Addressing vs Partitioning

Addressing
The dimension(s) the calculation moves through. It defines the direction of travel. "Compute using Quarter" means the calc walks across quarters.
Partitioning
The dimension(s) that define independent groups. The calculation restarts for each partition. "Partition by Region" means each region gets its own running total.

The Core Rule

All Dimensions in the View = Addressing + Partitioning

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

Table (Across)
Addresses columns. Calc moves left to right, restarting per row.
Table (Down)
Addresses rows. Calc moves top to bottom, restarting per column.
Specific Dimensions
You explicitly pick which dimensions to address. Most reliable method.

How Compute Using Works

Edit Table Calculation Checked = Addressing ☑ Quarter ☑ Month (calc moves through these) Unchecked = Partitioning ☐ Region ☐ Category (calc restarts for each) RUNNING_SUM(SUM([Sales])) Accumulates across Quarter & Month, restarting per Region & Category

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

1
Identify all dimensions in your view: look at Rows, Columns, and the Marks card (Color, Detail, etc.).
2
Ask: "What groups should restart the calc?" Those are your partitioning dimensions.
3
Ask: "What direction should the calc travel?" Those remaining dimensions are your addressing dimensions.
4
Right-click the pill → Edit Table Calculation → Specific Dimensions. Check only the addressing dimensions.
5
Verify by hovering over marks: check the tooltip shows the calculation restarting where you expect.

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.

Region Q1 Q2 Q3 Q4 East West South 100 250 430 600 80 170 300 440 60 130 230 340

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.

Region Q1 Q2 Q3 East West South 42% 43% 44% 33% 32% 32% 25% 25% 24%

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.

2023 2024 Q3 Q4 Q1 Q2 Furniture Technology 3 4 2 1 2 1 4 3 Addressing: Year + Quarter

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.

Deepest Level
Calculation runs at the most granular level of the addressing dims. Default and most common.
Higher Level
Calculation aggregates values at a coarser grain before applying the table calc. Useful for nested hierarchies.

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.

2023 2024 Q1 Q2 Q3 Q4 Q1 Q2 100 250 430 600 100 90 210 Restarting every: Year

Common Mistakes

✕ Using Quick Options in Production
Relying on "Table Across" or "Table Down" breaks silently when pills are moved. Always use Specific Dimensions.
✕ Forgetting Hidden Dimensions
A dimension on the Detail shelf still affects the calculation. If you forget it exists, your addressing/partitioning split is wrong.
✕ Swapping Address and Partition
Checking the wrong dimension means the calc moves in the wrong direction. Always ask: "What resets? What accumulates?"

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?