Analytics-DA-201 domain - 41% of the exam

Explore and Analyze Data

Explore and Analyze Data is 41% of the Tableau Certified Data Analyst (Analytics-DA-201) exam. These are the objectives it covers, each with practice questions and worked explanations.

Objectives in this domain

Sample question from this domain

Free sampleExplore and Analyze Datamedium

A subscriptions dataset has a [Signup Date] and a [Cancel Date] field, both stored as dates. An analyst needs a calculated field that returns the whole number of complete months each customer stayed subscribed, so that a customer who signed up on 15 January and cancelled on 14 March counts as one month rather than two. Which calculation returns the correct result?

// Sample row:
// [Signup Date] = 2024-01-15
// [Cancel Date] = 2024-03-14
// Expected result = 1
  • ADATEDIFF('month', [Cancel Date], [Signup Date]) - IIF(DAY([Cancel Date]) < DAY([Signup Date]), 1, 0)
  • BDATEPART('month', [Cancel Date]) - DATEPART('month', [Signup Date]) - IIF(DAY([Cancel Date]) < DAY([Signup Date]), 1, 0)
  • CDATEDIFF('month', [Signup Date], [Cancel Date]) + IIF(DAY([Cancel Date]) < DAY([Signup Date]), 1, 0)
  • DDATEDIFF('month', [Signup Date], [Cancel Date]) - IIF(DAY([Cancel Date]) < DAY([Signup Date]), 1, 0) Correct
Understand that DATEDIFF with the 'month' part counts calendar boundaries crossed, not complete elapsed months. DATEDIFF('month', start, end) counts how many times the month boundary is crossed between the two dates, regardless of the day component, so it reports two for 15 January to 14 March. To get complete elapsed months you subtract one whenever the end day has not yet reached the start day.

Why A is wrong: The day-adjustment is correct but the two date arguments are reversed, so DATEDIFF returns a negative value for any customer who cancels after signing up. The dates must run start then end.

Why B is wrong: Subtracting month numbers ignores the year, so it miscounts across year boundaries and returns a negative figure when the cancel month is numerically lower than the signup month.

Why C is wrong: Adding rather than subtracting one inflates the count further; DATEDIFF already over-counts when the end day is earlier, so the correction must reduce the total, not increase it.

Why D is correct: DATEDIFF with 'month' counts calendar-month boundaries crossed, so it over-counts by one when the end day has not yet reached the start day; subtracting one in that case yields complete elapsed months.

Other domains in this exam

See also the Analytics-DA-201 cert hub, the study guide, and the cheat sheet.

Examworthy is not affiliated with or endorsed by Tableau. Original, blueprint-aligned practice material only.