Inside CALCULAR: ignores the group filter and uses the whole visual.
| Field | Value |
|---|---|
| Category | Context and filter |
| Type | Aggregation (operates on a set of rows) |
| Arity | no arguments |
| Compiles to SQL (calculated column) | No |
| Version | Formula engine v3. |
Aliases#
Canonical name: TUDO. Accepted aliases (case-insensitive): all.
Syntax#
TUDO()All arguments 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: ALL / REMOVEFILTERS
- Compatibility: DIFFERS from DAX — different semantics, watch out
- Note: TUDO() takes no argument — it means 'the whole visual'. DAX ALL receives the table/column. It only makes sense inside CALCULAR.
Examples#
DIVIDIR(SOMA(receita); CALCULAR(SOMA(receita); TUDO()))Example with values#
Input: SP=60 over the total (TUDO) = 100.
DIVIDIR(SOMA(receita); CALCULAR(SOMA(receita); TUDO())) → 0,6Expected result: 0,6
Business example#
Comparative measure — share of total, ranking, change versus another period.
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.