0
0
Tableaubi_tool~20 mins

Trend analysis in Tableau - Practice Problems & Coding Challenges

Choose your learning style9 modes available
Challenge - 5 Problems
🎖️
Trend Analysis 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 Using LOD Expression

You have a sales dataset with fields OrderDate and SalesAmount. You want to calculate the year-over-year sales growth percentage using a Level of Detail (LOD) expression in Tableau.

Which of the following LOD expressions correctly calculates the total sales for the previous year to use in the growth calculation?

A{ FIXED YEAR([OrderDate]) - 1 : SUM([SalesAmount]) }
B{ FIXED YEAR(DATEADD('year', -1, [OrderDate])) : SUM([SalesAmount]) }
C{ FIXED DATEPART('year', DATEADD('year', -1, [OrderDate])) : SUM([SalesAmount]) }
D{ FIXED YEAR([OrderDate]) : SUM([SalesAmount]) }
Attempts:
2 left
💡 Hint

Think about how to fix the year to the previous year using date functions inside the LOD.

visualization
intermediate
2:00remaining
Best Visualization for Showing Monthly Sales Trend with Forecast

You want to create a dashboard that shows monthly sales trends over the past two years and includes a forecast for the next 6 months.

Which visualization type in Tableau best fits this requirement?

ALine chart with a continuous date axis and built-in Tableau forecast enabled
BBar chart grouped by month with color encoding for forecasted months
CPie chart showing sales distribution by month with forecast slice
DScatter plot with sales on Y-axis and month number on X-axis
Attempts:
2 left
💡 Hint

Consider which chart type best shows trends over time and supports forecasting.

🧠 Conceptual
advanced
2:00remaining
Understanding Moving Average for Trend Smoothing

Why is a moving average commonly used in trend analysis dashboards?

ATo replace missing data points with average values
BTo remove seasonal fluctuations and highlight the underlying trend
CTo increase the number of data points for better granularity
DTo convert categorical data into numerical data
Attempts:
2 left
💡 Hint

Think about what moving averages do to noisy data.

data_modeling
advanced
2:00remaining
Designing Data Model for Multi-Year Trend Analysis

You need to build a data model in Tableau to analyze sales trends over multiple years with the ability to filter by product categories and regions.

Which data modeling approach is best to support fast and flexible trend analysis?

AOnly a fact table with no dimension tables, using calculated fields for categories
BSingle flat table with all sales, product, region, and date columns combined
CSeparate tables for each year with no shared dimension tables
DStar schema with a fact sales table linked to dimension tables for date, product, and region
Attempts:
2 left
💡 Hint

Think about how dimension tables help with filtering and performance.

🔧 Formula Fix
expert
2:00remaining
Identify the Error in Trend Line Calculation

A Tableau user created a calculated field to compute a 3-month moving average of sales:

WINDOW_AVG(SUM([SalesAmount]), -2, 0)

However, the moving average does not appear correctly on the dashboard.

What is the most likely cause of the problem?

AThe calculation does not specify the correct addressing and partitioning, causing incorrect windowing
BWINDOW_AVG cannot be used with SUM aggregation inside it
CThe window frame should be from 0 to 2 instead of -2 to 0
DThe calculation needs to use RUNNING_AVG instead of WINDOW_AVG
Attempts:
2 left
💡 Hint

Consider how Tableau computes table calculations and the importance of addressing.