sisense.com
✅ You are viewing documentation for the latest version of Compose SDK.
Version:

Function withoutFormulaFilter Beta

withoutFormulaFilter(match): CalculatedMeasureTransformer

Returns a transformer that removes the filter(s) matching the target from a calculated measure formula, dropping them from both the context and the expression.

Removal only happens for filters in a measured-value position (the (measure, [filter]) pattern); a filter in an operator position (or whose removal would leave a degenerate expression) is left in place rather than corrupting the formula. Returns the measure unchanged when nothing is removed.

Parameters

ParameterTypeDescription
matchFormulaFilterMatcherHow to target the filter to remove. See FormulaFilterMatcher.

Returns

CalculatedMeasureTransformer

A transformer producing the updated calculated measure.

Example

const unscoped = withoutFormulaFilter(DM.Category.Category)(revenue);
Last Updated: