Overview
- This and next (n) (interval): When a user select This and next, the selection returns all records with dates in the current period and the next periods the user has specified.
- This and previous (n) (interval): When a user select This and previous, the selection returns all records with dates in the current period as well as date in the previous periods the user has specified.
- Previous period (n) (interval): When a user selects Previous period, the selection returns all records from the previous periods the user has specified.
- This period (list): When a user selects This period, the selection returns all records with the current period specified.
- Next period (n) (interval): When a user selects Next period, the selection returns all records with the next periods the user has specified.
- This, previous, and next (list): When a user selects This, previous and next, the selection returns all records from the current period, the previous period and the next period, the user has specified.
User input
The input is slightly different depending on whether the period is an interval or a list.- For lists, the UI has a drop-down list where the user can select the type of period (also known as interval or unit): days, weeks, months, quarter, or years.
- For intervals, the UI has a number field in addition to the type drop-down list.
This and next
ThethisAndNext operator returns all records belonging to the current date’s period and the next set of days, weeks, months, quarters, or years specified by the user.
When a user selects This and next, the right side of the line displays 2 fields: a number field and a drop-down list with the following options:
Days
- The start date will be today (current day).
- The end date will be the last day of however many days the user has specified in the number field.
Weeks
- The start date will be the first day of current week
- The end date will be the last day of the last upcoming week specified by the user.
Month
- The start date will be the first date of the current month
- The end date will be the last day of the last upcoming month the user has specified.
Quarter
- The start date will be first day of the current quarter
- The end date will be the last day of the last upcoming quarter the user specified.
Year
- The start date will be the first day of the current year
- The end date will be the last day of the last year the user has specified.
This and previous
ThethisAndPrevious operator returns all items that are the previous set of days, weeks, months, quarter, or years specified by the user, until and including the current period.
When the user has selected This and previous as an operator, the right side of the line displays 2 fields: a number field and a drop-down list with the following options:
Days
- The start date will be the first date when counting back the number of days from today the user has set as the number value
- The end date is today (current day).
Weeks
- The start date will be the first date when counting back from the current week the number of weeks the user has set as the number field.
- The end date is the last day of the current week.
Months
- The start date will be the first date of the month when counting back from current month the number of months specified in the number field.
- The end date is today (current day).
Quarter
- The start date is the first date of the quarter when counting back from the first day of the current quarter the number of quarters set in the number field.
- The end date is end date of the current quarter.
Years
- The start date is the first day of the previous year/years.
- The end date is the last day of the current year.
Previous period
ThepreviousPeriod operator returns all items that are in the previous period set of days, weeks, months, quarter, or years specified by the user.
When the user has selected Previous period, the right side of the line displays 2 fields: a number field and a drop-down list with the following options:
Days
- The start date will be the first date of the previous period specified by the user.
- The end date will be the last date of the set period.
Weeks
- The start date will be the first date of the previous week.
- The end date will be the last date of the previous week.
Months
- The start date will be the first date of the previous month.
- The end date will be the last date of the previous month.
Quarter
- The start date will be the first date of the previous quarter.
- The end date will be the last date of the previous quarter.
Years
- The start date will be the first date of the previous year.
- The end date will be the last date of the previous year.
This Period
ThethisPeriod operator returns all items that are of this period, of the selected set of days, weeks, months, quarter, or years specified by the user.
When the user has selected This period, the right side of the line displays a drop-down list with the following options:
This week
- The start date will be the first day of the week in the current week.
- The end date will be the last day of the week, which is normally a Sunday.
This Month
- The start date will be the first date of the month, in the current month.
- The end date will be the last day of the month.
This quarter
- The start date will be the first day of the first month in the current quarter.
- The end date will be the last day of the last month, in the current quarter.
This year
- The start date will be the first day of the current year.
- The end date will be the last date of the current year.
Next period
ThenextPeriod operator returns all items that are of the next period, specified by the user.
When the user has selected Next period, the right side of the line displays 2 fields: a number field and a drop-down list with the following options:
Days
- The start date will be the first day of the next period, which will be the day after the current day.
- The end date will be the last date in the next period specified by the user.
Days will always start running from tomorrow and run the number of days set in the number field, until and including the last day of the set range.
Weeks
- The start date will be the first day of the next week.
- The end date will be the last date of the last week of the specified range.
If the user would have selected Next period 7 days this would have a given the user a different result than next 1 week.
Months
- The start date will be the first day of the following month.
- The end date will be the last day of the last month in the specified range.
Quarter
- The start date will be the first day of the following quarter.
- The end date will be the last day of the last quarter in the specified range.
Year
- The start date will be the first date of the next year.
- The end date will be the last date of the last year in the specified range.
This, Previous, and Next
ThethisPreviousAndNext operator returns all items that are of the selected unit in the list dropdown. It will give the user the records that are of dates in the previous period, this period and the next period.
When the user has selected This, Previous, and Next, the right side of the line displays a drop-down list with the following options:
Day
- The start date will be the previous day (yesterday).
- The end date will be tomorrow.
Week
- The start date will be the first day of the previous week.
- The end date will be the last day of next week.
Month
- The start date will be the first day of the previous month.
- The end date will be the last day of the next month.
Quarter
- The start date will be the first day of the previous quarter.
- The end date will be the last day of the next quarter.
Year
- The start date will be the first day of the previous year.
- The end date will be the last date of the next year.
Converting to new dynamic date ranges
When removing old date operators and replacing them with new, users are already having existing selections based on old operators. These selections should continue to give users the same result, which means existing criteria needs to be replaced by the equivalent new criteria.The examples assume that today is 18.03.2025.