YEAR DAX Function (Date and Time)
Returns the year of a date as a four digit integer.
Syntax
Parameter | Attributes | Description |
---|---|---|
Date |
A date in datetime format. |
Return values
An integer in the range 1900-9999.
Remarks
If the argument is a string, it is translated into a datetime value using the same rules applied by the DATEVALUE function.
Related functions
Other related functions are:
Last update: Dec 5, 2019 » Contribute » Show contributors
Contributors: Alberto Ferrari, Marco Russo
MSDN documentation: https://docs.microsoft.com/en-us/dax/year-function-dax