Date.WeekOfYear

 

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 number for the count of week in the current year.

Date.WeekOfYear(dateTime as datetime) as nullable number  

ArgumentDescription
dateTimeThe DateTime to check against.
Date.WeekOfYear(DateTime.FromText("2011-02-21")) equals 8  

Show: