蜜豆视频

Calendar and date ranges overview

In the calendar, you can specify dates and date ranges, or select a preset.

Here is a video on using date ranges and calendars in Analysis Workspace:

Calendar selections apply at the panel level, but you have the option to apply them to all panels. When you click a date range in Workspace, the interface displays the current calendar month and the previous calendar month. You can adjust these two calendars by clicking the right and left arrows in each respective upper corner.

Calendar {width="60%"}

Select and apply date ranges select-apply

The first click on a calendar starts a date range selection. The second click completes a date range selection, which becomes highlighted. If the Shift key is held down (or right-click is used), it appends to the currently selected range.

You can also drag dates (and time dimensions) into a Workspace project. You can select specific days, weeks, months, years, or a rolling date.

Using Date Ranges and Calendar in Analysis Workspace (4:07)

Setting
Description
Selected Days
Selected days/weeks/months/years.
Make date range components relative to panel calendar

If disabled, any date range components used within a table, visualization, or panel drop zone override the panel calendar.

If enabled, any date range components used within a table, visualization, or panel drop zone are in relation to the panel date range. For example, if the panel date range is set to November 1 through November 30, and a Last Week date range component is used in a freeform table, the information in the freeform table refers to the last week in October.

Use rolling dates

Rolling dates allow you to generate a dynamic report that looks forward or backward for a set period of time based on when you ran the report. For example, if you want to report on all Orders placed 鈥淟ast Month鈥 (based on the Created Date field) and ran that report in December, you鈥檇 see orders placed in November. If you ran that same report in January, you鈥檇 see orders placed in December.

  • Date Preview: Indicates what time period the rolling calendar encompasses.
  • Start: You can choose among current day, current week, current month, current quarter, current year.
  • End: You can choose among current day, current week, current month, current quarter, current year.

To view an example, see Custom date ranges.
Selected by default.

Date Range
Lets you pick a preset date range. Last 30 days is the default. This week/month/quarter/year (excluding today) lets you choose from date ranges that do not include partial-day data from today.
Apply to All Panels
Lets you not only change the selected date range for the current panel, but also for all other panels within the project.
Apply
Applies the date range to this panel only.

About relative panel date ranges relative-panel-dates

If you鈥檙e working in Workspace, you can make the date range components relative to the panel calendar.
Three common use cases where you鈥檒l see relative panel dates take effect are Combo charts, Key metrics summary, and Freeform table date ranges.

To use relative panel date ranges

  1. Select the Workspace tab.

  2. Select Blank project.

  3. Add dimensions, metrics, and segments from the left rail.

  4. Click the panel date range field to toggle the relative panel date range setting.

  5. Select Make date range components relative to panel calendar.

    • Select the option to make the date range components relative to the panel calendar.
      If relative dates are selected, then rolling dates will be based on the start date of the panel calendar and not today鈥檚 date.
    • If this option isn鈥檛 selected, then rolling dates will be based on today鈥檚 date.

    relative panel dates {width="60%"}

  6. Click Apply.
    The relative dates are shown in the upper-right.

    relative dates in freeform

Guidelines for relative panel date ranges guidelines

Keep in mind the following guidelines when using relative panel date ranges.

Formulas and relative date ranges formula-relative-dates

If you have relative dates selected, all date formulas will use the panel鈥檚 start date as the starting point.

Custom calendars and relative date ranges custom-calendar-formulas

When you use a week-based custom calendar and you add months or years, the formula calculates the offset of the day in the given period. The actual date may be different because of the offset. The formula chooses the day landing in the same place in the custom calendar. For example, the third Friday of the third week in a custom calendar.

About segments that use rolling dates and relative panel date ranges segments-relative-dates

If you build a segment or use a segment with a rolling date, for example, the Last 7 Days or the Last 2 Weeks, and you click on the segment preview, it will start the rolling date from Today instead of the panel start date. As a result the preview for the segment will not match when you actually use the segment in the table. The preview is impacted, not the segment itself.

Guidelines for panel date ranges and previews guidelines-panel-dates

  • Starting with the February release, component and data previews will be based on the panel date range and not the last 90 days.
  • All components listed in the left rail will be available based on the panel date range.
  • All date previews in the segment and calculated metric builders will be based on the panel date range (unless accessed from the component managers, which do not have an associated panel, they will still be based on the last 90 days).
  • Any data previews will display data or components based on the panel date range.
recommendation-more-help
a83f8947-1ec6-4156-b2fc-94b5551b3efc