Envision provides a variety of date functions.
Extracts the year the from the Date dimension.
Syntax
EXTRACTYEAR([dateDimension])
Example
EXTRACTYEAR([requiredDate])
Extracts the month from the Date Dimension.
Syntax
EXTRACTMONTH([dateDimension])
Example
EXTRACTMONTH([requiredDate])
Extracts the day from the Date Dimension.
Syntax
EXTRACTDAY([dateDimension])
Example
EXTRACTDAY([requiredDate])
Extracts the date from the Date Dimension.
Syntax
EXTRACTDATE([dateDimension])
Example
EXTRACTDATE([requiredDate])
Extracts the hour from the Date Dimension.
Syntax
EXTRACTHOUR([dateDimension])
Example
EXTRACTHOUR([Sale_Time])
Extracts the minutes from the Date Dimension.
Syntax
EXTRACTMINUTE([dateDimension])
Example
EXTRACTMINUTE([Sale_Time])
Extracts the seconds from the Date Dimension.
Syntax
EXTRACTSECOND([dateDimension])
Example
EXTRACTSECOND([Sale_Time])
Returns ‘true’ for those records that have value (the Date Dimension’s value) between the start of the year and today, and ‘false’ otherwise. Takes only the date Dimension as argument.
Syntax
ISYTD([dateDimension])
Example
ISYTD([requiredDate])