WEEKNUM is a DAX function that returns the week number in the year for a given date.
Syntax
WEEKNUM(
Date,
ReturnType
)
| Argument | Properties | Description |
|---|---|---|
| Date | A date in datetime format. | |
| ReturnType | Optional | A number that determines the return value: use 1 when week begins on Sunday, or use 2 when week begins on Monday. |