Skip to content

Automatic translation — the Portuguese version is the reference. View in Portuguese

ANO

On this page (10)

Year of the date.

FieldValue
CategoryDate and time
TypeScalar (operates value by value)
Arity1 argument (fixed)
Compiles to SQL (calculated column)Yes
VersionFormula engine v3.

Aliases#

Canonical name: ANO. Accepted aliases (case-insensitive): year.

Syntax#

code
ANO(expr)

All arguments are expressions.

Returns#

Number.

Null handling#

Invalid or missing dates become a friendly error or blank, depending on the function.

Evaluation context#

Scalar — evaluated on the result of the arguments (in calculated columns, it runs row by row).

Differences from DAX#

  • DAX equivalent: YEAR
  • Compatibility: Compatible with DAX
  • Note: Year of the date.

Examples#

code
ANO(pedido_em)

Example with values#

Input: date 2025-03-15.

code
ANO(DATA(2025;3;15))  →  2025

Expected result: 2025

Business example#

Group revenue by accrual year.

Common errors#

Typos in a column name, an incompatible type, or an invalid argument become a friendly message (pt-BR) — the engine never silently returns a wrong number.


← Back to the formula index

Related links