Inside CALCULAR: ignores the group filter BUT keeps the given column(s).
| Field | Value |
|---|---|
| Category | Context and filter |
| Type | Aggregation (operates on a set of rows) |
| Arity | 1 to 4 arguments |
| Compiles to SQL (calculated column) | No |
| Version | Formula engine v3. |
Aliases#
Canonical name: TUDO_EXCETO. Accepted aliases (case-insensitive): allexcept.
Syntax#
TUDO_EXCETO(coluna; [arg2]; [arg3]; [arg4])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: ALLEXCEPT
- Compatibility: Compatible with DAX
- Note: Ignores the group filter but preserves the given columns (gives you the '% within category').
Examples#
DIVIDIR(SOMA(receita); CALCULAR(SOMA(receita); TUDO_EXCETO(uf)))Example with values#
Input: group SP/loja; sum of all of SP (loja+site=100).
CALCULAR(SOMA(receita); TUDO_EXCETO(uf)) → 100Expected result: 100
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.