0
0
Tableaubi_tool~20 mins

Relative date filtering in Tableau - Practice Problems & Coding Challenges

Choose your learning style9 modes available
Challenge - 5 Problems
🎖️
Relative Date Filtering Master
Get all challenges correct to earn this badge!
Test your skills under time pressure!
🧠 Conceptual
intermediate
2:00remaining
Understanding Relative Date Filters in Tableau

Which of the following best describes how a relative date filter works in Tableau?

AIt filters data based on a fixed date range that never changes.
BIt filters data only by specific years selected manually by the user.
CIt filters data dynamically based on the current date, such as last 7 days or last month.
DIt filters data by excluding weekends and holidays automatically.
Attempts:
2 left
💡 Hint

Think about how the filter updates when you open the dashboard tomorrow.

dax_lod_result
intermediate
2:00remaining
Result of Relative Date Filter Expression

Given a dataset with daily sales and today's date is 2024-06-15, what will be the total sales if a relative date filter is set to 'Last 3 days'?

Sales data:

  • 2024-06-12: 100
  • 2024-06-13: 150
  • 2024-06-14: 200
  • 2024-06-15: 250
  • 2024-06-16: 300
A600
B550
C650
D700
Attempts:
2 left
💡 Hint

Remember 'Last 3 days' includes today and the two previous days.

visualization
advanced
2:00remaining
Choosing the Correct Relative Date Filter Setup

You want to create a dashboard that always shows sales data for the last full calendar month (e.g., if today is June 15, show May 1 to May 31). Which relative date filter setting in Tableau will achieve this?

ASet filter to 'Last 3 months' including current month.
BSet filter to 'Last 30 days' including today.
CSet filter to 'This month' including today.
DSet filter to 'Previous month' with 'Include current period' unchecked.
Attempts:
2 left
💡 Hint

Think about how to exclude the current partial month and only show the full previous month.

🔧 Formula Fix
advanced
2:00remaining
Why Does the Relative Date Filter Not Update Correctly?

A Tableau user sets a relative date filter to 'Last 7 days' but notices the dashboard does not update daily and shows stale data. What is the most likely cause?

AThe relative date filter only works with weekly data, not daily data.
BThe data source is not set to refresh daily, so the filter uses old data.
CThe filter was set to 'Fixed date' instead of 'Relative date'.
DThe dashboard is missing a date field in the view.
Attempts:
2 left
💡 Hint

Consider what controls the data freshness behind the scenes.

🎯 Scenario
expert
3:00remaining
Designing a Dynamic Sales Report with Multiple Relative Date Filters

You need to build a Tableau report that shows three sales metrics side by side:

  • Sales for the last 7 days
  • Sales for the last full calendar month
  • Sales for the last 3 full calendar months

Which approach will correctly implement these relative date filters so all metrics update dynamically and independently?

ACreate three separate relative date filters on the same date field, each configured for the respective period, and apply each filter only to its corresponding metric using context filters or separate worksheets.
BCreate one relative date filter set to 'Last 3 months' and use calculated fields to extract last 7 days and last month sales from it.
CUse a fixed date filter for last full calendar month and last 3 months, and a relative date filter only for last 7 days, applying all filters globally.
DCreate a parameter to select the date range and use it in a single relative date filter applied to all metrics.
Attempts:
2 left
💡 Hint

Think about how to isolate filters so they don't interfere with each other.