Inside CALCULAR: replaces the date filter with the given range (ignores the group's period).
| Field | Value |
|---|---|
| Category | Context and filter |
| Type | Aggregation (operates on a set of rows) |
| Arity | 3 arguments (fixed) |
| Compiles to SQL (calculated column) | No |
| Version | Formula engine v3. |
Aliases#
Canonical name: ENTRE_DATAS. Accepted aliases (case-insensitive): datesbetween.
Syntax#
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#
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).
CALCULAR(SOMA(receita); ENTRE_DATAS(dia; "2025-01-01"; "2025-01-31")) → 50Expected 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").