DATEADD DAX Function in Power BI

The DATEADD DAX function returns a table that contains a single column and single row of date, shifted either forward or backward in time by the specified number of intervals from the dates in the current context. This function is not used for summarization over time.

DAX Syntax DATEADD(Dates, number_of_intervals, interval)

The function takes the following parameters:

Note: The function returns dates only if it is present in the Dates column otherwise blank is returned.

Example: Let’s create a Calculated column.

DAX

DATEADD Column = DATEADD('Sheet1'[Dates],-1,DAY)

The output of the above code is shown below:

DATEADD dax function in Power BI

As we can see in the image as there is no previous day for 26 February 1990 in the Dates column so its corresponding value in the DATEADD Column is blank.