Date-Based Visual Analysis

Date-Based Visual Analysis connects a business measure to the time period it describes. In Tableau, your date settings determine whether you compare recurring categories, such as months of the year, or follow events through time. A useful view starts with a clear question: are you looking for seasonality, a chronological trend, or differences between reporting periods?

Choose what a date represents

First, check that the field has the Date or Date & Time data type. Text that looks like a date does not automatically behave like a date. Check several source records against their interpreted values, especially when day and month could be confused. Formatting an incorrectly interpreted date will not repair its meaning.


Next, choose the time interval represented by each mark. Daily detail can reveal short interruptions; monthly totals can make a longer pattern easier to see. A coarser interval combines observations and can hide variation within the period. Selecting a finer interval does not create detail absent from the source.


A date part extracts a component, such as month or weekday. Month alone groups February observations together, even when they come from different years. Other fields in the view can separate those groups: adding year, for example, distinguishes each year’s February.


A date value retains the date’s chronological identity at a chosen level. At the month level, February 2023 and February 2024 remain different values. Dates within each of those months are grouped into their respective month.


Two February dates map to one month category or to separate month and year values.



Choose headers or a time axis

Two decisions work together: what date information to retain, and how to display it. A discrete field is blue and creates headers. A continuous field is green and creates an axis. Colour identifies display behavior; it does not, by itself, establish whether the grouping matches your question.


Date configuration

What it represents

Suitable purpose

Discrete month date part alone

Month categories pooled across years

Comparing recurring months

Discrete year and month date parts

Months separated within years

Comparing periods in a structured table

Discrete month date value

A separate header for each actual month

Listing monthly results chronologically

Continuous month date value

Actual months positioned on a time axis

Following a monthly trend


For a monthly sales timeline, place the date on Columns, select Month from the date-values section of its menu, and use Continuous. Place sales on Rows with the intended aggregation, such as SUM. With no other grouping fields, each observed month has a monthly sales total.


Date formatting changes the label’s appearance. It does not replace selecting the date level. Displaying a timestamp as a month name can leave several distinct timestamps carrying identical-looking labels. Conversely, showing only the month name can conceal the year even when the underlying month values remain separate.

Check whether periods are comparable

Before interpreting a rise or fall, inspect coverage. A complete month and a month recorded only through its first week represent different observation windows. Label incomplete periods and choose comparable coverage before drawing conclusions about performance.


Also distinguish an absent period, a null measure and an observed zero. An absent period has no corresponding source rows. A null measure is an empty value on an existing row. A recorded zero is an actual value. These situations can look similar in a view but support different interpretations.


Where Tableau can infer missing dates within a range, Show Missing Values can expose those periods. It does not recover transactions or establish that their totals were zero.



Finally, use a consistent reporting calendar. For weekly comparisons, check the week-start setting. For fiscal reporting, check the fiscal-year definition. The same observations can fall into different periods when these conventions differ.


What to remember

  • Choose the date level to match the business question.
  • Distinguish recurring date parts from chronological date values.
  • Use headers for categories and an axis for continuous time.
  • Check calendar conventions and coverage before comparing totals.

Example: Monthly revenue across a year boundary

An equipment supplier uses Tableau to analyse sales in USD. Order Date is correctly interpreted as a Date field. The following rows are all sales records for the three periods shown; other months are omitted from this extract for brevity. September 2023 and September 2024 are fully reported. October 2024 is reported only through 8 October.


Order Date

Sales (USD)

6 September 2023

1,250

21 September 2023

1,750

5 September 2024

2,100

24 September 2024

2,400

3 October 2024

900


The current view uses only the discrete Month date part on Columns and SUM(Sales) on Rows. No other fields separate the marks.


a) Explain the September total in the current view and calculate the two year-specific September totals.


The Month date part groups all September records together because no year field separates them. The displayed September total is therefore:


1,250+1,750+2,100+2,400=7,500 USD1{,}250+1{,}750+2{,}100+2{,}400=7{,}500\ \text{USD}


For September 2023, sum only that month’s records:


1,250+1,750=3,000 USD1{,}250+1{,}750=3{,}000\ \text{USD}


For September 2024, sum its records:


2,100+2,400=4,500 USD2{,}100+2{,}400=4{,}500\ \text{USD}


The combined value is valid as a pooled September total, but it does not show how the two actual Septembers differ. As a check, the separate totals add to USD 7,500.


b) Specify a monthly timeline that keeps the two Septembers separate. State the values for the three periods shown.


On Columns, change Order Date to Month from the date-values section and use Continuous. Retain SUM(Sales) on Rows. With no other grouping fields, each actual month has one total on a chronological axis.


September 2023 shows USD 3,000, September 2024 shows USD 4,500, and October 2024 shows USD 900. The month date values retain the year, so the Septembers remain separate. Formatting the original month-part labels would not have repaired their pooled grouping.


c) Can the October mark establish that full-month revenue fell below September 2024? Explain what you would check.


October’s observed total is USD ________, but it covers only records through 8 October. September’s USD ________ covers a complete month. These unequal observation windows do not establish a decline in full-month revenue.


Label October as incomplete and obtain comparable coverage before evaluating the change. If an expected date has no rows, check whether that means no sales or incomplete reporting. Showing missing dates can expose a gap, but it does not recover transactions or prove a zero total. Do not present an assumed full-month projection as observed revenue.

An airline has complete booking records for calendar years 2021–2024. An analyst wants exactly 12 categories showing total bookings for each month of the year, pooled across all four years. No other fields will separate the bookings into groups. Which date configuration fits this request?

Choose an answer

Create a free account to get started

Unlock full course notes by signing up

  • Video lessons taught by top educators
  • Practice questions with guided solutions
  • Written review notes for reference
  • Expert answers anytime from course tutors

A hotel imports reservation records into Tableau. A field's data type identifies the kind of information it stores. Match each type to its description, distinguishing calendar values from text that merely resembles them.

Match each term
A.

Calendar year, month, and day together with a time-of-day component

B.

Characters held as text, even when they look like calendar values

C.

Calendar year, month, and day without a time-of-day component

Date

String

Date & Time

Create a free account to get started

Unlock full course notes by signing up

  • Video lessons taught by top educators
  • Practice questions with guided solutions
  • Written review notes for reference
  • Expert answers anytime from course tutors

A finance analyst needs a Tableau text table with one column header for each actual calendar quarter from 2020 through 2022. For example, Q2 2020 and Q2 2021 must remain separate. The analyst wants one date field on Columns and categorical headers rather than a continuous axis. Which configuration meets both requirements?

Choose an answer

Create a free account to get started

Unlock full course notes by signing up

  • Video lessons taught by top educators
  • Practice questions with guided solutions
  • Written review notes for reference
  • Expert answers anytime from course tutors

Extra Practice