Skip to content

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

REMOVER_FILTROS

On this page (10)

Inside CALCULAR: clears the group filter ONLY on the given column(s) and keeps the rest (it's the opposite of TUDO_EXCETO).

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

Aliases#

Canonical name: REMOVER_FILTROS. Accepted aliases (case-insensitive): removefilters.

Syntax#

code
REMOVER_FILTROS(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: REMOVEFILTERS
  • Compatibility: Compatible with DAX
  • Note: Clears the group filter only on the given columns — the dual of TUDO_EXCETO.

Examples#

code
DIVIDIR(SOMA(receita); CALCULAR(SOMA(receita); REMOVER_FILTROS(uf)))

Example with values#

Input: group SP; removes the uf filter → total 100.

code
CALCULAR(SOMA(receita); REMOVER_FILTROS(uf))  →  100

Expected 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.


← Back to the formula index

Related links