Date.IsInPreviousWeek

 

This topic applies to the Power Query Formula Language which can be used with Power Query and Power BI Desktop to build queries that mashup data. See the list of function categories.

Returns a logical value indicating whether the given Date/DateTime/DateTimeZone occurred during the previous week, as determined by the current date and time on the system.

Date.IsInPreviousWeek(dateTime) as logical  

ArgumentDescription
dateTimeCheck whether this DateTime occurred during the previous week
Show: