Skip to content

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

ENTRE_DATAS

On this page (10)

Inside CALCULAR: replaces the date filter with the given range (ignores the group's period).

FieldValue
CategoryContext and filter
TypeAggregation (operates on a set of rows)
Arity3 arguments (fixed)
Compiles to SQL (calculated column)No
VersionFormula engine v3.

Aliases#

Canonical name: ENTRE_DATAS. Accepted aliases (case-insensitive): datesbetween.

Syntax#

code
ENTRE_DATAS(coluna; arg2; arg3)

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

Returns#

CALCULAR modifier (does not return a value on its own).

Null handling#

When there is no row in the changed context, it returns blank (never zero) — a blank is more honest than a made-up zero.

Evaluation context#

Modifier — only makes sense INSIDE CALCULAR (or another context function that accepts it). Outside of that, it warns you instead of returning a wrong number.

Differences from DAX#

  • DAX equivalent: DATESBETWEEN
  • Compatibility: Compatible with DAX
  • Note: Replaces the date filter with the given range, inside CALCULAR.

Examples#

code
CALCULAR(SOMA(receita); ENTRE_DATAS(dia; "2026-01-01"; "2026-03-31"))

Example with values#

Input: sum of January/25 only (range Jan 01–31).

code
CALCULAR(SOMA(receita); ENTRE_DATAS(dia; "2025-01-01"; "2025-01-31"))  →  50

Expected result: 50

Business example#

Comparative measure — share of total, ranking, change versus another period.

Common errors#

Dates in the wrong format become a guided error (e.g., write "2026-01-31").


← Back to the formula index

Related links