WEEKDAY is a DAX function that returns a number from 1 to 7 identifying the day of the week for a given date.
Syntax
WEEKDAY(
Date,
ReturnType
)
Argument | Properties | Description |
---|---|---|
Date | A date in datetime format. | |
ReturnType | Optional | A number that determines the return value: for Sunday=1 through Saturday=7, use 1; for Monday=1 through Sunday=7, use 2; for Monday=0 through Sunday=6, use 3. |