To change the date range of an existing data block, select Edit a data block or use the QUICK EDIT panel.
Use the following options to change a date range for a data block.
The Calendar allows you to create static or rolling dates using the following options:
The From cell option allows you to reference dates entered in worksheet cells.
You have the option to exclude today on any selected date range.
When you use the Calendar, the date range field displays the current date range for the data block request. You can enter dates directly into the date range field or use a data range selection option.
To enter dates directly into the date range field
Click the date range field next to the calendar icon.
Enter start and end dates for your date range.
To select dates using the calendar
Click the calendar icon to display a monthly calendar.
Click a start date.
Click an end date.
To set a date range in reverse, click the end date first and then click the start date.
The preset drop-down menu includes a standard set of preset date ranges and date range components for a data view that you saved or a data view that was shared with you.
The rolling dates option allows you to select a date range using rolling dates.
Select Use rolling dates.
Select a rolling expression for your start and or end date.
Start of — Allows you to select the beginning of a day, week, month, quarter, or year.
End of — Allows you to select the end of a day, week, month, quarter, or year.
Fixed day — Allows you to fix a start or end date while the other date is rolling.
Choose day, week, month, quarter, or year as the rolling period.
Add or subtract days, weeks, months, quarters, or years from your rolling date.
Click Next to define the data range.
Use the date preview to confirm the resulting date range is the desired range.
The custom expression option allows you to change the date range by building a custom expression or you can enter an arithmetic formula.
Select Use rolling dates.
Select Use custom expression.
When you select the Use custom expression option, the standard rolling date range controls are disabled.
Enter a custom expression.
For a sample list of custom expressions, see Date expressions.
Use the date preview to verify the resulting date range is the desired range.
Enter a Date reference.
Add Date operators to move the date to the past or future.
You can enter a custom date expression that includes multiple operators, such as
The following table lists date reference examples.
|Entered in ISO Date format
|Start of current day
|Start of current week
|Start of current month
|Start of current quarter
|Start of current year
The following table lists date operator examples.
|Add 6 days to the Date Reference
|Add one full week to the Date Reference
|Subtract 2 full months to the Date Reference
|Subtract 4 quarters to the Date Reference
|Subtract one year to the Date Reference
The following table lists date expression examples.
|First day of last week
|Last day of previous month
|Same day, 52 weeks ago
|Last day of the same month last year
|Sept 9th, 2020
The date range can be specified in worksheet cells. Use the Date range from cell option to choose the data block start and end date from selected cells. When you select the From cell option, the panel displays From and To fields where you can enter a cell location.
Choose the Exclude today option to exclude today from a selected date range. Choosing to include today may pull incomplete data for today.
When selected, the Exclude today option excludes the current day from all date range modes including calendar, rolling dates, or custom expressions.
The following list describe valid date range formats.
The start and end dates must be in the following format: YYYY-MM-DD
The start date must be earlier to or equal to the end date. Both dates can be set to the future.
When using rolling dates, the start date must be today or in the past. It must be in the past if Exclude today is checked.
You can create a static date range set for the future. For example, you may need to set a future date for a marketing campaign launch next week. This option creates a workbook monitoring for a campaign ahead of time.
You can edit the date range of an existing data block by selecting Edit data block in the COMMANDS panel or by selecting the date range link in the QUICK EDIT panel.
Edit data block — Allows you to edit multiple data block parameters, including date range, for a single data block.
Quick Edit: Date range — Allows you to edit the date range of one or more data blocks.
To edit the date range from the QUICK EDIT panel
Select cells within one or more data blocks in a worksheet.
Click the Date range link in the QUICK EDIT panel.
Select the date range using any of the date selection options.
Report Builder applies the new date range to all data blocks in the selection.