Bird
Raised Fist0
Tableaubi_tool~15 mins

Why table calculations compute across the view in Tableau - Business Case Study

Choose your learning style10 modes available

Start learning this pattern below

Jump into concepts and practice - no test required

or
Recommended
Test this pattern10 questions across easy, medium, and hard to know if this pattern is strong
Scenario Mode
👤 Your Role: You are a data analyst working with sales data in Tableau.
📋 Request: Your manager wants to understand why the table calculations in Tableau compute results across the entire view instead of just one column or row.
📊 Data: You have monthly sales data by region and product category. The data includes columns for Region, Product Category, Month, and Sales Amount.
🎯 Deliverable: Create a simple Tableau view showing sales by region and month, apply a table calculation (running total), and explain why the calculation computes across the view.
Progress0 / 5 steps
Sample Data
RegionProduct CategoryMonthSales Amount
EastFurnitureJan1000
EastFurnitureFeb1200
EastTechnologyJan1500
WestFurnitureJan800
WestTechnologyFeb900
WestTechnologyJan700
SouthFurnitureFeb1100
SouthTechnologyFeb1300
1
Step 1: Create a Tableau worksheet with Rows = Region, Columns = Month, and Text = SUM(Sales Amount).
Drag Region to Rows shelf, Month to Columns shelf, and SUM(Sales Amount) to Text on Marks card.
Expected Result
A table showing total sales for each region by month.
2
Step 2: Add a table calculation to compute the running total of sales across the months.
Right-click SUM(Sales Amount) on Text, select 'Add Table Calculation', choose 'Running Total', compute using 'Table (Across)'.
Expected Result
Each cell shows the running total of sales from the first month to the current month for each region.
3
Step 3: Explain why the running total computes across the view instead of just one column or row.
Table calculations in Tableau compute based on the layout of the view and the direction specified (here 'Table Across'). They use the visible data in the view as their scope.
Expected Result
The running total sums sales values across the months in the view because the calculation is set to compute across the table horizontally.
4
Step 4: Demonstrate changing the direction of the table calculation to compute down the table.
Edit the table calculation, change 'Compute Using' to 'Table (Down)'.
Expected Result
The running total now sums sales down each column (across regions) for each month.
5
Step 5: Summarize that table calculations depend on the view layout and compute direction, which is why they compute across the view.
Table calculations use the data visible in the view and the compute direction to determine how to aggregate values.
Expected Result
Learners understand that table calculations are dynamic and depend on how the data is arranged in the view.
Final Result
Month ->  Jan    Feb
Region
East       2500   3700
West       1500   2400
South      0      2400

(Values show running total of sales across months for each region)
Table calculations use the data visible in the view as their scope.
The direction setting ('Table Across' or 'Table Down') controls how calculations aggregate data.
Changing the view layout or compute direction changes the calculation results.
This behavior explains why table calculations compute across the entire view.
Bonus Challenge

Create a table calculation that computes the percent of total sales by region across all months.

Show Hint
Use the 'Percent of Total' table calculation and set 'Compute Using' to 'Table (Down)' or 'Table (Across)' depending on desired direction.

Practice

(1/5)
1. What does it mean when we say table calculations in Tableau "compute across the view"?
easy
A. They calculate values only from the original data source, ignoring the view.
B. They always compute totals without considering the layout.
C. They use the data visible in the current chart or table to perform calculations.
D. They only work on filtered data, not the entire view.

Solution

  1. Step 1: Understand the meaning of "compute across the view"

    Table calculations use the data that is currently displayed in the view, not the entire data source.
  2. Step 2: Relate to how Tableau uses visible data

    Since the calculation depends on the view, changing the layout or filters changes the calculation.
  3. Final Answer:

    They use the data visible in the current chart or table to perform calculations. -> Option C
  4. Quick Check:

    Table calculations depend on visible data [OK]
Hint: Table calculations use only data shown in the view [OK]
Common Mistakes:
  • Thinking calculations use all data regardless of view
  • Confusing table calculations with data source filters
  • Assuming calculations ignore layout changes
2. Which of the following is the correct way to set the direction for a table calculation in Tableau?
easy
A. Right to Left
B. Compute Using > Table (Across)
C. Filter > Exclude
D. Data Source > Refresh

Solution

  1. Step 1: Identify how to set calculation direction

    In Tableau, you set the direction by choosing 'Compute Using' and selecting options like 'Table (Across)'.
  2. Step 2: Confirm correct syntax and option

    'Compute Using > Table (Across)' is the correct way to tell Tableau to calculate across the table horizontally.
  3. Final Answer:

    Compute Using > Table (Across) -> Option B
  4. Quick Check:

    Direction set by Compute Using [OK]
Hint: Use 'Compute Using' to set calculation direction [OK]
Common Mistakes:
  • Confusing filter options with calculation direction
  • Using data source refresh instead of compute using
  • Selecting invalid directions like 'Right to Left'
3. Given a table with sales data by Region and Month, if a table calculation is set to compute using 'Table (Down)', what will it calculate?
medium
A. Sum of sales across all regions horizontally
B. Sum of sales only for the first month
C. Sum of sales ignoring the view layout
D. Sum of sales down each region column vertically

Solution

  1. Step 1: Understand 'Table (Down)' direction

    'Table (Down)' means the calculation moves vertically down each column in the table.
  2. Step 2: Apply to sales by Region and Month

    Since months are likely arranged down rows, the calculation sums sales down each region's column vertically.
  3. Final Answer:

    Sum of sales down each region column vertically -> Option D
  4. Quick Check:

    Table (Down) = vertical calculation [OK]
Hint: 'Table (Down)' means calculate vertically down columns [OK]
Common Mistakes:
  • Thinking 'Table (Down)' calculates horizontally
  • Ignoring the table layout and direction
  • Assuming calculation ignores months
4. You set a table calculation to compute using 'Pane (Across)', but the results are not as expected. What is a likely cause?
medium
A. The calculation is computing only within each pane horizontally, but the view has no panes defined.
B. The data source is not connected properly.
C. The calculation is ignoring the pane boundaries and computing across the entire table.
D. The filter is excluding all data.

Solution

  1. Step 1: Understand 'Pane (Across)' scope

    'Pane (Across)' computes horizontally but only within each pane, which is a section of the view.
  2. Step 2: Check if panes exist in the view

    If the view has no panes (no partitioning), the calculation may behave unexpectedly because it expects pane boundaries.
  3. Final Answer:

    The calculation is computing only within each pane horizontally, but the view has no panes defined. -> Option A
  4. Quick Check:

    Pane scope needs panes in view [OK]
Hint: Check if panes exist when using 'Pane (Across)' [OK]
Common Mistakes:
  • Assuming 'Pane (Across)' ignores pane boundaries
  • Blaming data source connection for calculation issues
  • Confusing filters with calculation scope
5. You want to calculate the running total of sales by Month within each Region in a view that shows Regions as rows and Months as columns. Which 'Compute Using' setting should you choose for the table calculation to work correctly?
hard
A. Pane (Across)
B. Pane (Down)
C. Table (Across)
D. Table (Down)

Solution

  1. Step 1: Analyze the view layout

    Regions are rows, Months are columns, so months run horizontally across the view.
  2. Step 2: Determine running total direction and scope

    Running total by Month within each Region means calculating horizontally across each pane (each Region is a pane).
  3. Step 3: Choose correct 'Compute Using'

    'Pane (Across)' computes across columns within each pane (Region), which fits the requirement.
  4. Final Answer:

    Pane (Across) -> Option A
  5. Quick Check:

    Running total by Month across each Region = Pane (Across) [OK]
Hint: Match compute direction to months layout and pane to regions [OK]
Common Mistakes:
  • Choosing 'Table (Across)' which ignores pane boundaries
  • Using vertical directions when months are horizontal
  • Not considering pane boundaries for regions