DAX Function Guide
PREVIOUSDAY
Sam McKay
CEO & Founder
How does the PREVIOUSDAY work?
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