0
0
Tableaubi_tool~20 mins

Moving average in Tableau - Practice Problems & Coding Challenges

Choose your learning style9 modes available
Challenge - 5 Problems
🎖️
Moving Average Master
Get all challenges correct to earn this badge!
Test your skills under time pressure!
dax_lod_result
intermediate
2:00remaining
Calculate 3-Period Moving Average Using WINDOW_AVG
You have a sales dataset with daily sales. You want to calculate a 3-day moving average of sales using Tableau's WINDOW_AVG function. Which of the following calculated fields will correctly compute the 3-day moving average for each day?
AWINDOW_AVG(SUM([Sales]), -1, 1)
BWINDOW_AVG(SUM([Sales]), -2, 0)
CWINDOW_AVG(SUM([Sales]), 0, 2)
DWINDOW_AVG(SUM([Sales]), -3, 0)
Attempts:
2 left
💡 Hint
Think about how the window offsets define the range of days included in the average.
visualization
intermediate
2:00remaining
Identify Correct Moving Average Line Chart
You created a line chart showing daily sales and added a 7-day moving average line. Which visualization best follows best practices for showing moving averages?
ABar chart with daily sales and moving average combined in one bar without legend or axis labels.
BScatter plot with daily sales points and moving average points overlapping without connecting lines.
CPie chart showing proportion of sales per day with moving average as a separate pie slice.
DLine chart with daily sales as thin blue line and 7-day moving average as thick red line with legend and clear axis labels.
Attempts:
2 left
💡 Hint
Moving averages are best shown as smooth lines to show trends over time.
🧠 Conceptual
advanced
2:00remaining
Understanding Moving Average Window Size Impact
How does increasing the window size of a moving average affect the trend line in a time series visualization?
AIt smooths the trend more, reducing noise but may delay detection of changes.
BIt makes the trend line more sensitive to daily fluctuations.
CIt causes the trend line to become jagged and less smooth.
DIt removes all seasonality and cyclic patterns completely.
Attempts:
2 left
💡 Hint
Think about how averaging over more points affects responsiveness.
🔧 Formula Fix
advanced
2:00remaining
Identify Error in Moving Average Calculation
You wrote this Tableau calculated field for a 5-day moving average: WINDOW_AVG(SUM([Sales]), 0, 4). What issue will this cause in the visualization?
Tableau
WINDOW_AVG(SUM([Sales]), 0, 4)
AIt calculates a 5-day moving average correctly including past and future days.
BSyntax error due to incorrect WINDOW_AVG parameters.
CThe moving average only looks forward, ignoring previous days, causing lag in trend detection.
DIt causes division by zero error when there are fewer than 5 days.
Attempts:
2 left
💡 Hint
Check the window offsets to see which days are included.
🎯 Scenario
expert
3:00remaining
Designing a Dashboard with Multiple Moving Averages
You need to build a sales dashboard showing daily sales with 7-day and 30-day moving averages. Which approach best ensures clarity and usability for non-technical users?
AUse a single line chart with daily sales as a thin line, 7-day moving average as a medium line, and 30-day moving average as a thick line, with a clear legend and color coding.
BCreate three separate charts for daily sales, 7-day, and 30-day moving averages without legends or labels.
CUse a stacked bar chart combining daily sales and moving averages in one bar per day.
DShow only the 30-day moving average line to reduce clutter and omit daily sales.
Attempts:
2 left
💡 Hint
Think about how to compare multiple trends clearly in one view.