Skip to content

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

ULTIMA_DATA

On this page (10)

The latest date in the current group.

FieldValue
CategoryDate and time
TypeAggregation (operates on a set of rows)
Arity1 argument (fixed)
Compiles to SQL (calculated column)No
VersionFormula engine v3.

Aliases#

Canonical name: ULTIMA_DATA. Accepted aliases (case-insensitive): lastdate.

Syntax#

code
ULTIMA_DATA(coluna)

The 1st argument is the name of a column (bare identifier); the others are expressions.

Returns#

Date.

Null handling#

A group with no date returns blank.

Evaluation context#

Over the current group's rows.

Differences from DAX#

  • DAX equivalent: LASTDATE
  • Compatibility: DIFFERS from DAX — different semantics, watch out
  • Note: Returns the group's latest date as a VALUE (scalar); DAX LASTDATE returns a one-column table.

Examples#

code
ULTIMA_DATA(dia)

Example with values#

Input: group with Mar 5 and Mar 20.

code
ULTIMA_DATA(dia)  →  2025-03-20

Expected result: 2025-03-20

Business example#

Time analysis — order age, accrual month/year, accounting close.

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