Skip to content

Year

Description

Year returns the year from a date.

Syntax

Year(date)

Parameters

Parameter Required Type Description
date Yes Date, field, or expression Date to evaluate.

Notes

Use this function in calculated fields, metric expressions, or query expressions where the function category is supported.

Example

Year(OrderDate)

The expression returns the calculated result according to the current query context.