Date Calendars

The Date Calendar allows your readers to select options from date-key columns. They can filter their discoveries or presentations by selecting date "slices"; that is, particular dates, ranges of dates, or formulas based on dates (such as year to date or last x days to date).

Note: You may also be able to slice by dates using dropdown lists or buttons (say), where your dates are not modeled as date-key columns. The Date Calendar is only available for date-keys.

You can show or hide any of these pickers from the slicer's settings dialog.

Creating a Date Calendar Slicer

Drag the date-time hierarchy (yellow highlight below) onto the Filters drop zone and drop it onto the Date Calendar sub-menu (purple highlight). Hovering over the Filters menu opens the sub-options:

Note: A Date Calendar can only be created using a date-time column.

Using the Date Calendar

When you drop the date-time hierarchy onto the Data Calendar option (green arrow below), a Date Calendar slicer is created on the canvas. When you click the slicer's dropdown list (purple arrow), the Date Calendar opens instead of a list of dropdown options:

Calendar Types

The Date Calendar features different "Pickers," each of which is designed to meet a different set of user requirements:

Simple Picker

The Simple Picker allows you to select the items that should be used to filter the query. To select more than one element, select the Multi Select checkbox (purple arrow below). With Multi Select enabled, you can select multiple elements from any level of granularity (orange highlight).

The example below filters the query by the four dates selected: 5, 6, 12, and 13 January, 2008:

  • Click here for more information about Simple Pickers

Range Picker

The Range Picker allows you to filter the query by a date range, beginning with the From date, up to and including the To date. Select the required level of granularity, then select the start date from the left, and the end date from the right.

The example below filters the query by all dates between 1 April 2009 and 30 September 2009, inclusive:

  • Click here for more information about Range Pickers

Formula Picker

The Formula Picker allows you to filter the query by a formula based on the selected date element. Start by selecting the granularity level, then select the date element, then choose the required function. (Which functions are available depends on the selected level of granularity.)

The example below filters the query by all dates in 2009 (YTD), up to and including 18 August:

  • Click here for more information about Formula Pickers

Function Picker

The Function Picker allows you to filter the query dynamically using a date function that references the "latest date." Which date is the latest depends on your model:

  • If your model includes dates up to and including the current date, then the latest date is today.
  • If your model only includes dates from the past, then the latest date is the latest date that we have data for. If we have data from 2010 only, then the latest date is in 2010.
  • If your model includes future dates, then the latest date is the last of the future dates. If we have data to 2050, then the latest date we have data for is in 2050.

The example below (YTD) filters the query by the year to date. This means that, if the latest date you have data for is today, Pyramid will select the data for this year up to and including today:

  • Click here for more information about Function Pickers

All Picker Functionality

Granularity

Rather than displaying dates only, the Date Calendar allows you to specify the desired level of Granularity (orange highlight below). This means that you can choose to display any of the date-time groups in the calendar and make your selections accordingly:

  • Select Years and then select 2010 to filter the query to display data for 2010.
  • Select Semesters and then select 2008 > S2 and 2009 > S2 to filter the query by semester 2 of 2008 and 2009.
  • Select Quarters and then select 2008 > Q2, 2009 > Q2, and 2010 > Q2 to filter the query by quarter 2 of 2008, 2009, and 2010. (The example above shows this selection.)
  • Select Months and then select 2010 > Jul and Aug to filter the query by July and August, 2010.
  • Select Weeks and then select 2009 and 1, 2, and 3 to filter the query by weeks 1, 2, and 3 of 2009.
  • Select Dates and then select 2009 and January and then 3, 4, 17, 18, and 31 to filter the query by January 3, 4, 17, 18, and 31, 2009.

Calendar Selection

The Date Calendar only allows selections for dates that exist in the database. Dates and periods for which there is no data are grayed out. To make a selection from the calendar, start by selecting the required level of granularity, then select the required date or time period.

To assist in making a selection, use the back and forward arrows to move to the next or previous period, and use the up and down buttons to jump to a different month or year.

Back and Forward Buttons

Use the back and forward buttons to navigate through the calendar at the current level of granularity. For example, at the Dates level the calendar displays dates by month (orange highlight below), click the forward arrow to go to the next month, or the back arrow to go to the previous month (purple arrows). Likewise, at the week level, click forward to go to the next year, or back to go to the previous year.

Up and Down Buttons

Use the up and down buttons (orange highlight above) to jump to a different month or year for the current level of granularity. Up buttons indicate that you can go up a level, while down arrows indicate that you can go down a level, without making a filter selection.

Examples

To follow these examples, use the Sample Demo data model.

Quick Selection

The quick selection options provide a shortcut selection for filtering by the current, first, or last date-time period at the current level of granularity.

To make a quick selection:

  1. Start by choosing the granularity level as usual.
  2. Then, instead of making a selection from the calendar, choose one of the Jump To options below.

  • Current: Depending on the given level of granularity, selects today's date (if it exists in the system) or the current year, semester, quarter, month, or week. If the current date-time period doesn't exist in the system, the last date-time period will be selected instead.
  • First: Selects the first date-time period in the system according to the selected level of granularity. If the granularity is set to Dates, the first date in the system will be selected; if the granularity is set to months, the first month in the system will be selected; and so on.
  • Last: Selects the last date-time period in the system according to the selected level of granularity. If the granularity is set to Dates, the last date in the system is selected. If the granularity is set to years, the last year in the system is selected.