0
0
Tableaubi_tool~20 mins

Year-over-year comparison in Tableau - Practice Problems & Coding Challenges

Choose your learning style9 modes available
Challenge - 5 Problems
🎖️
Year-over-Year Master
Get all challenges correct to earn this badge!
Test your skills under time pressure!
dax_lod_result
intermediate
2:00remaining
Calculate Year-over-Year Sales Growth

You have a sales dataset with a Sales Amount and a Date field. Using Tableau's calculated fields, which formula correctly calculates the year-over-year sales growth percentage?

A(SUM([Sales Amount]) - LOOKUP(SUM([Sales Amount]), -12)) / LOOKUP(SUM([Sales Amount]), -12)
B(SUM([Sales Amount]) - ZN(SUM([Sales Amount]))) / ZN(SUM([Sales Amount]))
C([Sales Amount] - LOOKUP(SUM([Sales Amount]), -1)) / LOOKUP(SUM([Sales Amount]), -1)
D(SUM([Sales Amount]) - PREVIOUS_VALUE(SUM([Sales Amount]))) / PREVIOUS_VALUE(SUM([Sales Amount]))
Attempts:
2 left
💡 Hint

Think about how many periods back you need to look to compare the same month last year.

visualization
intermediate
1:30remaining
Best Visualization for Year-over-Year Sales Comparison

You want to show year-over-year sales trends for multiple years in a clear and easy-to-understand way. Which type of Tableau visualization is best suited for this?

ALine chart with separate lines for each year showing monthly sales
BStacked bar chart showing total sales per year
CPie chart comparing total sales of two years
DScatter plot showing sales vs. profit for each year
Attempts:
2 left
💡 Hint

Think about how to show trends over time and compare multiple years clearly.

🧠 Conceptual
advanced
1:30remaining
Understanding Year-over-Year Calculation Challenges

What is a common challenge when calculating year-over-year metrics in Tableau for datasets with missing months or irregular dates?

ATableau cannot perform year-over-year calculations on irregular date data.
BYear-over-year calculations do not require date fields, so missing months do not affect results.
CTableau automatically fills missing months with zeros, so no challenge exists.
DLOOKUP functions may compare to incorrect periods if data is missing, causing inaccurate year-over-year results.
Attempts:
2 left
💡 Hint

Consider how missing data affects relative period calculations.

data_modeling
advanced
2:00remaining
Modeling Data for Year-over-Year Analysis

Which data model design best supports efficient year-over-year analysis in Tableau?

AA table with only sales records for months with sales, no date gaps
BA flat table with sales and date columns including all dates, even if sales are zero
CSeparate tables for each year with no date relationships
DA table with aggregated yearly sales only, no monthly detail
Attempts:
2 left
💡 Hint

Think about how missing dates affect time comparisons.

🔧 Formula Fix
expert
2:30remaining
Debugging Incorrect Year-over-Year Calculation

A Tableau user created this calculated field for year-over-year sales growth:
(SUM([Sales]) - LOOKUP(SUM([Sales]), -1)) / LOOKUP(SUM([Sales]), -1)
But the results are incorrect when viewing monthly data. What is the most likely cause?

AThe calculation needs to use WINDOW_SUM instead of SUM.
BSUM aggregation is incorrect; should use AVG instead.
CLOOKUP offset of -1 compares to previous month, not previous year, causing wrong comparison.
DDivision by zero error occurs because LOOKUP returns null for first month.
Attempts:
2 left
💡 Hint

Consider what the offset number in LOOKUP means in a monthly time series.