DAX Function Guide

PREVIOUSDAY
Empty image or helper icon

Sam McKay

CEO & Founder

How does the PREVIOUSDAY work?
The PREVIOUSDAY function (DAX) returns a table that contains a column of all dates representing the day that is previous to the first date in the dates column, in the current context.
PREVIOUSDAY Formula Syntax

PREVIOUSDAY(
     <dates>
)

How do you use the PREVIOUSDAY?

This function determines the first date in the input parameter, and then returns all dates corresponding to the day previous to that first date. For example, if the first date in the dates argument refers to June 10, 2009; this function returns all dates equal to June 9, 2009.

Related Blog Posts

Loading

Considerations when using the PREVIOUSDAY?

The dates argument can be any of the following:

  • A reference to a date/time column.
  • A table expression that returns a single column of date/time values.
  • A Boolean expression that defines a single-column table of date/time values.
Related Video Tutorials

Loading

Formula examples using the PREVIOUSDAY

=CALCULATE(SUM(InternetSales_USD[SalesAmount_USD]), PREVIOUSDAY(‘DateTime'[DateKey]))

= CALCULATE ( SUM (Sales[Sales Amount]),PREVIOUSDAY (Sales[Date]) )

Related Courses

Loading