0
0
Tableaubi_tool~20 mins

Rolling period calculations in Tableau - Practice Problems & Coding Challenges

Choose your learning style9 modes available
Challenge - 5 Problems
🎖️
Rolling Period Master
Get all challenges correct to earn this badge!
Test your skills under time pressure!
dax_lod_result
intermediate
2:00remaining
Calculate 3-month rolling sum using Tableau LOD expressions
You have monthly sales data. Which Tableau LOD expression correctly calculates the 3-month rolling sum of sales ending at the current month?
ARUNNING_SUM(SUM([Sales]))
B{ FIXED [Month] : SUM([Sales]) }
C{ INCLUDE [Month] : SUM([Sales]) }
DWINDOW_SUM(SUM([Sales]), -2, 0)
Attempts:
2 left
💡 Hint

Think about how to sum sales over the current and previous two months in a rolling window.

visualization
intermediate
2:00remaining
Identify the correct rolling average line chart
You want to visualize a 6-month rolling average of revenue over time. Which chart best represents this rolling average?
ABar chart showing monthly revenue with a 6-month rolling average line overlay
BLine chart with monthly revenue points connected directly
CPie chart showing revenue distribution by month
DScatter plot of monthly revenue vs. month number
Attempts:
2 left
💡 Hint

Rolling averages are best shown as a smooth line over time to show trends.

🧠 Conceptual
advanced
2:00remaining
Understanding difference between RUNNING_SUM and WINDOW_SUM
Which statement correctly explains the difference between RUNNING_SUM and WINDOW_SUM in Tableau when calculating rolling totals?
ARUNNING_SUM calculates cumulative total from the start to current row; WINDOW_SUM sums over a specified window of rows.
BRUNNING_SUM sums only the current row; WINDOW_SUM sums all rows in the data source.
CRUNNING_SUM and WINDOW_SUM are identical and interchangeable.
DRUNNING_SUM sums over a fixed window; WINDOW_SUM sums cumulatively from the start.
Attempts:
2 left
💡 Hint

Think about cumulative totals versus sums over a sliding window.

🔧 Formula Fix
advanced
2:00remaining
Identify the error in this rolling average calculation
Given this Tableau calculation for a 12-month rolling average: WINDOW_AVG(SUM([Sales]), 0, 11), what is the problem?
Tableau
WINDOW_AVG(SUM([Sales]), 0, 11)
ASUM([Sales]) cannot be used inside WINDOW_AVG.
BWINDOW_AVG requires three arguments, but only two are provided.
CThe window offsets should be negative to include previous months, e.g., -11 to 0.
DThe calculation will work correctly as is.
Attempts:
2 left
💡 Hint

Rolling averages usually include previous periods, not future ones.

🎯 Scenario
expert
3:00remaining
Design a rolling 4-quarter growth rate calculation
You have quarterly sales data and want to calculate the rolling 4-quarter growth rate in Tableau. Which approach correctly calculates this?
AUse (SUM([Sales]) - LOOKUP(SUM([Sales]), -4)) / LOOKUP(SUM([Sales]), -4)
BUse WINDOW_SUM(SUM([Sales]), -3, 0) / WINDOW_SUM(SUM([Sales]), -7, -4)
CUse RUNNING_SUM(SUM([Sales])) / 4
DUse (SUM([Sales]) - LOOKUP(SUM([Sales]), 4)) / LOOKUP(SUM([Sales]), 4)
Attempts:
2 left
💡 Hint

Growth rate compares current 4 quarters sum to previous 4 quarters sum.