Using dates

Tableau provides various options to analyze data fields that are of date type. Some options include grouping by quarters, years, or months.

Getting ready

Let's use the sample file Sample – Coffee Chain (Access). Open a new worksheet and select Sample – Coffee Chain (Access) as the data source.

How to do it....

Once the data is loaded, perform the following steps to use dates in your analysis:

  1. Click on the Show Me button to bring the Show Me toolbar on the screen.
  2. Select Inventory and Sales from Measures and Date from Dimensions by pressing the Ctrl key and clicking on these fields.
  3. Select the lines (continuous) chart type from the Show Me toolbar to generate a visualization as shown in the following screenshot. The following chart shows us ...

Get Tableau: Creating Interactive Data Visualizations now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.