Table of contents
Collapse the table of content
Expand the table of content


Owen Duncan|Last Updated: 10/5/2018
1 Contributor

Returns a table that contains a column of dates that begins with the start_date and continues for the specified number_of_intervals.




datesA column that contains dates.
start_dateA date expression.
number_of_intervalsAn integer that specifies the number of intervals to add to or subtract from the dates.
intervalThe interval by which to shift the dates. The value for interval can be one of the following: year, quarter, month, day

Return Value

A table containing a single column of date values.


The dates argument can be a reference to a date/time column.


Constraints on Boolean expressions are described in the topic, CALCULATE Function (DAX).

If the number specified for number_of_intervals is positive, the dates are moved forward in time; if the number is negative, the dates are shifted back in time.

The interval parameter is an enumeration, not a set of strings; therefore values should not be enclosed in quotation marks. Also, the values: year, quarter, month, day should be spelled in full when using them.

The result table includes only dates that appear in the values of the underlying table column.

This DAX function is not supported for use in DirectQuery mode. For more information about limitations in DirectQuery models, see


The following formula returns the Internet sales for the 21 days prior to August 24, 2007.

= CALCULATE(SUM(InternetSales_USD[SalesAmount_USD]),DATESINPERIOD(DateTime[DateKey],DATE(2007,08,24),-21,day))  

See Also

Time Intelligence Functions (DAX)
Date and Time Functions (DAX)
Get Sample Data

© 2018 Microsoft