0
0
Tableaubi_tool~10 mins

Why table calculations compute across the view in Tableau - Formula Trace Breakdown

Choose your learning style9 modes available
Sample Data

Sales data by region used to demonstrate how table calculations compute across the view.

CellValue
A1Region
B1Sales
A2North
B2100
A3South
B3150
A4East
B4200
A5West
B550
Formula Trace
RUNNING_SUM(SUM([Sales]))
Step 1: SUM([Sales]) for North
Step 2: RUNNING_SUM at North
Step 3: SUM([Sales]) for South
Step 4: RUNNING_SUM at South = previous running sum + current sum
Step 5: SUM([Sales]) for East
Step 6: RUNNING_SUM at East = previous running sum + current sum
Step 7: SUM([Sales]) for West
Step 8: RUNNING_SUM at West = previous running sum + current sum
Cell Reference Map
    A       B
1 |Region | Sales
2 | North | 100  
3 | South | 150  
4 | East  | 200  
5 | West  |  50  

Arrows: Sales values flow into RUNNING_SUM calculation across rows.
The table calculation references the Sales column values across all regions in the view.
Result
    A       B       C
1 |Region | Sales | Running Sum
2 | North | 100   | 100        
3 | South | 150   | 250        
4 | East  | 200   | 450        
5 | West  |  50   | 500        
The Running Sum column shows cumulative sales adding each region's sales across the view from top to bottom.
Sheet Trace Quiz - 3 Questions
Test your understanding
What does the RUNNING_SUM function do in this example?
ACalculates the average sales for all regions
BAdds sales values one by one across the regions in the view
CShows only the sales for the last region
DMultiplies sales values across regions
Key Result
RUNNING_SUM computes cumulative totals by adding values across the visible rows in the view.