Bird
Raised Fist0
Tableaubi_tool~20 mins

Continuous vs discrete dates in Tableau - Practice Questions

Choose your learning style10 modes available

Start learning this pattern below

Jump into concepts and practice - no test required

or
Recommended
Test this pattern10 questions across easy, medium, and hard to know if this pattern is strong
Challenge - 5 Problems
🎖️
Date Mastery in Tableau
Get all challenges correct to earn this badge!
Test your skills under time pressure!
🧠 Conceptual
intermediate
1:30remaining
Understanding Continuous vs Discrete Dates in Tableau

In Tableau, dates can be treated as continuous or discrete. Which statement correctly describes the difference between continuous and discrete dates?

ADiscrete dates create a green pill and show a timeline with all dates in a range, while continuous dates create a blue pill and show distinct date parts as separate headers.
BContinuous dates create a green pill and show a timeline with all dates in a range, while discrete dates create a blue pill and show distinct date parts as separate headers.
CContinuous dates and discrete dates both create blue pills but differ in sorting order only.
DDiscrete dates create a green pill and continuous dates create a blue pill, but both display dates as a list without timeline.
Attempts:
2 left
💡 Hint

Think about the color of the pill and how Tableau displays dates on the axis.

visualization
intermediate
1:30remaining
Visualizing Sales Over Time with Continuous Dates

You want to create a line chart showing total sales over time with a smooth timeline including every date. Which date type should you use on the Columns shelf in Tableau?

AUse a continuous date (green pill) like Exact Date to show sales on a continuous timeline.
BUse a discrete date (blue pill) like YEAR(Date) to show sales by year as separate columns.
CUse a string representation of the date to sort sales alphabetically.
DUse a discrete date (blue pill) like MONTH(Date) to show sales by month as separate headers.
Attempts:
2 left
💡 Hint

Think about which date type creates a smooth timeline axis for line charts.

dax_lod_result
advanced
2:00remaining
Calculating Sales by Discrete Year vs Continuous Date

Given a sales table with a Date column, which DAX measure correctly calculates total sales by discrete year (not continuous timeline)?

Sales by Year = CALCULATE(SUM(Sales[Amount]), YEAR(Sales[Date]))

Which option correctly replaces the YEAR(Sales[Date]) part to work as a discrete year grouping?

AFILTER(Sales, YEAR(Sales[Date]) = YEAR(TODAY()))
BALL(Sales[Date])
CDISTINCT(Sales[Date])
DVALUES(YEAR(Sales[Date]))
Attempts:
2 left
💡 Hint

Think about how to get distinct year values for grouping in DAX.

🔧 Formula Fix
advanced
2:00remaining
Fixing a Tableau Date Axis Showing Unexpected Gaps

You created a line chart with a continuous date axis in Tableau, but the timeline shows unexpected gaps where no data exists. Which option best explains why this happens?

AThe date field is continuous, but the data source has missing dates, so Tableau shows gaps in the timeline.
BThe date field is discrete, and Tableau automatically fills missing dates with nulls, so gaps appear.
CThe date field is continuous, and Tableau fills missing dates with zeros, so no gaps should appear.
DThe date field is discrete, so Tableau only shows dates with data, causing gaps.
Attempts:
2 left
💡 Hint

Think about how continuous axes handle missing data points.

🎯 Scenario
expert
2:30remaining
Choosing Date Type for a Sales Dashboard with Mixed Granularity

You are building a sales dashboard in Tableau that shows monthly sales trends and allows users to drill down to daily sales. Which approach best uses continuous and discrete dates to achieve this?

AUse discrete MONTH(Date) pills for the main trend and continuous DAY(Date) pills for drill down to show a smooth daily timeline.
BUse discrete YEAR(Date) pills for the main trend and continuous MONTH(Date) pills for drill down to show a smooth monthly timeline.
CUse a continuous MONTH(Date) pill for the main trend and discrete DAY(Date) pills for drill down to show exact days as headers.
DUse continuous YEAR(Date) pills for the main trend and discrete MONTH(Date) pills for drill down to show months as headers.
Attempts:
2 left
💡 Hint

Consider which date type creates smooth timelines and which creates headers for drill down.

Practice

(1/5)
1. In Tableau, what color pill represents a continuous date field on the Columns or Rows shelf?
easy
A. Green pill
B. Blue pill
C. Red pill
D. Yellow pill

Solution

  1. Step 1: Understand Tableau date pill colors

    Tableau uses green pills for continuous fields and blue pills for discrete fields.
  2. Step 2: Identify continuous date pill color

    Continuous dates appear as green pills to show smooth timelines.
  3. Final Answer:

    Green pill -> Option A
  4. Quick Check:

    Continuous date = Green pill [OK]
Hint: Continuous dates always show as green pills in Tableau [OK]
Common Mistakes:
  • Confusing continuous with discrete pill colors
  • Thinking blue pills represent continuous dates
  • Assuming color depends on data type, not continuous/discrete
2. Which of the following is the correct way to convert a date field to discrete in Tableau?
easy
A. Right-click the date field and select 'Convert to Continuous'
B. Right-click the date field and select 'Convert to Discrete'
C. Drag the date field to Filters shelf
D. Double-click the date field to create a continuous axis

Solution

  1. Step 1: Locate conversion options for date fields

    In Tableau, right-clicking a date field shows options to convert between continuous and discrete.
  2. Step 2: Select the correct conversion for discrete

    Choosing 'Convert to Discrete' changes the pill color to blue and treats dates as categories.
  3. Final Answer:

    Right-click the date field and select 'Convert to Discrete' -> Option B
  4. Quick Check:

    Convert to Discrete = Right-click the date field and select 'Convert to Discrete' [OK]
Hint: Right-click date field to toggle continuous/discrete [OK]
Common Mistakes:
  • Selecting 'Convert to Continuous' instead of discrete
  • Dragging to Filters shelf does not change continuous/discrete
  • Double-clicking creates continuous axis by default
3. Given a line chart with a continuous date on Columns and Sales on Rows, what happens if you change the date to discrete?
medium
A. The chart shows a smooth timeline with connected points.
B. The chart becomes empty because discrete dates are invalid.
C. The chart breaks into separate bars for each date value.
D. The chart shows a scatter plot with random points.

Solution

  1. Step 1: Understand continuous date behavior in line charts

    Continuous dates create a smooth timeline with connected points forming a line.
  2. Step 2: Understand discrete date behavior in line charts

    Discrete dates treat each date as a separate category, breaking the line into separate bars or marks.
  3. Final Answer:

    The chart breaks into separate bars for each date value. -> Option C
  4. Quick Check:

    Discrete date = separate categories [OK]
Hint: Discrete dates split timeline into separate categories [OK]
Common Mistakes:
  • Expecting a smooth line with discrete dates
  • Thinking discrete dates create scatter plots
  • Assuming discrete dates cause errors or empty charts
4. You created a line chart with a continuous date but the axis shows unexpected gaps. What is the most likely cause?
medium
A. The date field is actually discrete, not continuous.
B. The date field is formatted as text.
C. The Sales measure is aggregated incorrectly.
D. There are missing dates in the data causing gaps.

Solution

  1. Step 1: Check date field type

    Continuous dates create smooth axes; if gaps appear, the field is likely continuous, not discrete.
  2. Step 2: Identify cause of gaps

    Missing dates in the data cause breaks in continuous timelines, showing gaps on the axis.
  3. Final Answer:

    There are missing dates in the data causing gaps. -> Option D
  4. Quick Check:

    Missing dates cause gaps in continuous axis [OK]
Hint: Gaps in continuous axis usually mean missing dates [OK]
Common Mistakes:
  • Assuming date field is discrete when it's continuous
  • Thinking text formatting causes axis gaps
  • Blaming measure aggregation for axis gaps
5. You want to compare sales performance by month as distinct groups and also see the overall sales trend over time. How should you use continuous and discrete dates in your Tableau dashboard?
hard
A. Use discrete month for the bar chart and continuous month for the line chart.
B. Use continuous month for both charts to keep consistency.
C. Use discrete month for both charts to show clear categories.
D. Use continuous month for the bar chart and discrete month for the line chart.

Solution

  1. Step 1: Understand visualization goals

    Comparing sales by month as distinct groups fits discrete dates (blue pills) for clear categories.
  2. Step 2: Understand trend visualization

    Showing overall sales trend over time fits continuous dates (green pills) for smooth timelines.
  3. Step 3: Apply correct date types per chart

    Use discrete month for bar chart to compare groups, continuous month for line chart to show trend.
  4. Final Answer:

    Use discrete month for the bar chart and continuous month for the line chart. -> Option A
  5. Quick Check:

    Discrete for groups, continuous for trends [OK]
Hint: Discrete = groups, Continuous = trends in Tableau dates [OK]
Common Mistakes:
  • Using continuous dates for group comparisons
  • Using discrete dates for trend lines
  • Applying same date type to all charts regardless of purpose