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
Recall & Review
beginner
What is a running total in Tableau?
A running total is a cumulative sum of a measure that adds values from the start up to the current point in a sequence, like adding daily sales one day after another.
Click to reveal answer
beginner
How do you create a running total in Tableau?
You create a running total by using the 'Quick Table Calculation' feature and selecting 'Running Total' on a measure in your view.
Click to reveal answer
beginner
What is the difference between a running total and a simple sum?
A simple sum adds all values together without order, while a running total adds values step-by-step in a sequence, showing the total up to each point.
Click to reveal answer
intermediate
Why is sorting important when using running totals?
Sorting ensures the running total adds values in the correct order, like by date, so the cumulative sum makes sense over time.
Click to reveal answer
intermediate
Can running totals be reset in Tableau? How?
Yes, running totals can reset by partitioning the data, for example, restarting the total for each category or region using the 'Compute Using' settings.
Click to reveal answer
What does a running total show in Tableau?
ADifference between values
BCumulative sum of values in order
CMaximum value only
DAverage of all values
✗ Incorrect
A running total adds values step-by-step in order, showing the cumulative sum.
Which Tableau feature helps create a running total quickly?
AData Blending
BFilter Shelf
CParameter Control
DQuick Table Calculation
✗ Incorrect
Quick Table Calculation lets you apply running total easily on a measure.
Why must data be sorted correctly for running totals?
ATo filter out unwanted data
BTo change colors of bars
CTo ensure cumulative sums add in the right sequence
DTo create a pie chart
✗ Incorrect
Sorting ensures the running total adds values in the correct order, like by date.
How can you reset a running total in Tableau?
ABy partitioning data using 'Compute Using'
BBy changing the color palette
CBy adding a filter
DBy exporting data
✗ Incorrect
Partitioning data resets the running total for each group or category.
Which of these is NOT true about running totals?
AThey ignore the order of data
BThey can be created with Quick Table Calculation
CThey show cumulative sums over a sequence
DThey can reset by partitioning
✗ Incorrect
Running totals depend on the order of data; ignoring order would give wrong results.
Explain how to create and use a running total in Tableau.
Think about adding values step-by-step in order.
You got /4 concepts.
Describe why sorting and partitioning matter when working with running totals.
Consider how totals add up over time or categories.
You got /3 concepts.
Practice
(1/5)
1. What does the RUNNING_SUM() function do in Tableau?
easy
A. Calculates a cumulative total by adding values step-by-step
B. Finds the average of all values in a column
C. Counts the number of rows in a dataset
D. Filters data based on a condition
Solution
Step 1: Understand the purpose of RUNNING_SUM()
RUNNING_SUM() adds values cumulatively across a sorted dimension, like dates.
Step 2: Compare with other functions
Unlike average or count, RUNNING_SUM() accumulates values step-by-step.
Final Answer:
Calculates a cumulative total by adding values step-by-step -> Option A
Quick Check:
RUNNING_SUM() = cumulative total [OK]
Hint: Think 'running total' means adding values one after another [OK]
Common Mistakes:
Confusing RUNNING_SUM() with average or count functions
Thinking it filters data instead of summing cumulatively
Assuming it resets for each row instead of accumulating
2. Which of the following is the correct syntax to create a running total of Sales in Tableau?
easy
A. RUNNING_SUM(SUM([Sales]))
B. SUM(RUNNING_SUM([Sales]))
C. RUNNING_TOTAL(SUM([Sales]))
D. TOTAL_SUM([Sales])
Solution
Step 1: Identify correct function usage
RUNNING_SUM() wraps an aggregation like SUM() to calculate cumulative totals.
Step 2: Check syntax correctness
RUNNING_SUM(SUM([Sales])) uses RUNNING_SUM(SUM([Sales])) which is valid; others use incorrect or non-existent functions.
Final Answer:
RUNNING_SUM(SUM([Sales])) -> Option A
Quick Check:
RUNNING_SUM(SUM()) is correct syntax [OK]
Hint: RUNNING_SUM wraps an aggregation like SUM inside [OK]
Common Mistakes:
Using RUNNING_TOTAL instead of RUNNING_SUM
Placing SUM outside RUNNING_SUM incorrectly
Using non-existent functions like TOTAL_SUM
3. Given the following daily sales data:
Date | Sales Jan 1 | 100 Jan 2 | 150 Jan 3 | 200
What is the running total on Jan 3 using RUNNING_SUM(SUM([Sales]))?
medium
A. 200
B. 150
C. 450
D. 100
Solution
Step 1: Calculate daily sums
Sales are 100 on Jan 1, 150 on Jan 2, and 200 on Jan 3.
Step 2: Compute running total up to Jan 3
Running total = 100 + 150 + 200 = 450.
Final Answer:
450 -> Option C
Quick Check:
100+150+200 = 450 [OK]
Hint: Add all previous sales including current date [OK]
Common Mistakes:
Taking only current day sales instead of cumulative
Adding only two days instead of three
Confusing running total with daily sales
4. You created a running total using RUNNING_SUM(SUM([Sales])) but the values reset unexpectedly for each category. What is the likely cause?
medium
A. SUM([Sales]) is incorrect syntax
B. The table calculation is partitioned by category, causing reset
C. RUNNING_SUM() cannot be used with categories
D. Data source has missing sales values
Solution
Step 1: Understand table calculation partitioning
Table calculations like RUNNING_SUM reset when partitioned by a dimension, here category.
Step 2: Identify cause of reset
If partitioning is by category, running total restarts for each category separately.
Final Answer:
The table calculation is partitioned by category, causing reset -> Option B
Quick Check:
Partitioning causes running total reset [OK]
Hint: Check partitioning settings if running total resets [OK]
Common Mistakes:
Assuming syntax error causes reset
Believing RUNNING_SUM can't work with categories
Ignoring partitioning in table calculations
5. You want to show a running total of monthly sales but only for the current year. Which approach correctly applies this filter without breaking the running total calculation?
hard
A. Use RUNNING_SUM(SUM([Sales])) without any filters
B. Apply a regular filter for current year after creating the running total
C. Create a calculated field that sums sales only if year equals current year, then apply RUNNING_SUM
D. Use a context filter for current year before applying RUNNING_SUM(SUM([Sales]))
Solution
Step 1: Understand filter order impact
Regular filters applied after table calculations can break running totals by removing data points.
Step 2: Use context filter to limit data first
Context filters limit data before calculations, preserving running total logic for current year only.
Final Answer:
Use a context filter for current year before applying RUNNING_SUM(SUM([Sales])) -> Option D
Quick Check:
Context filter preserves running total correctness [OK]
Hint: Filter data first with context filter, then run running total [OK]
Common Mistakes:
Applying regular filter after running total breaks calculation