Using fixed dates, date picker, mode
In CDP Data Visualization, the fixed date mode in a date filter enables you to select a subset range of dates for visualization.
This article describes how to use a date picker in a calendar heat map visual.
The following steps use a calendar heat map visual, such as the one described in
Calendar heat maps, which is built on the dataset SFPD
Incidents
.
-
Open
SFPD Incidents - Calendar Heat Map
, created according to the instructions in Calendar heat maps. -
Under Dimensions, select
date
, drag it to the Filters shelf of the visual, and drop it to add it to the shelf. - Start a new dashboard: click New Dashboard.
- In the Visual Designer, in the left menu area, click the Shared Visuals tab.
-
Ensure that you are using the SFPD Incidents dataset, and click SFPD
Incidents - Calendar Heat Map visual.
-
Note that the visual appears in the main area of the interface.
- In the menu area, click the Filters tab.
-
Under the Dimensions category, click the
date
field. -
Note that this adds a filter to the dashboard. This filter is based directly on the
field
date
, and has a typetimestamp
. -
Note that the dashboard filter contains the date range for the entire dataset; in this
case, it is from 2003-01-01 through 2014-12-31.
-
To see the date picker interface, on the filter, click the
Calendar icon, and select the Fixed Dates
option from the menu.
-
You can also click the
date
dashboard filter to see the date picker interface. -
Note that you can change the date range in various ways:
- By selecting the default options:
- Today
- Yesterday
- Last 7 Days
- Last Week
- Last 30 Days
- This Month
- Last Month
- By changing the date entries for FROM and TO fields
- By picking the start and end dates directly on the calendar interface
- By selecting the default options:
-
Change the date range to 2010-01-01 through 2010-12-31, and click
Apply.
-
Note that the visual output is now limited to the 2010 calendar year, and that
the application filter shows this new date range.
- Name and save the application. We used the name SFPD Incidents Date Picker.