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

Function findFormulaFilter Beta

findFormulaFilter(measure, match): Filter | undefined

Finds the first filter in a calculated measure formula matching the given target.

Parameters

ParameterTypeDescription
measureReadonly< CalculatedMeasure >The calculated measure to search.
matchFormulaFilterMatcherHow to target the filter. See FormulaFilterMatcher.

Returns

Filter | undefined

The matching filter, or undefined when none matches.

Example

Target a filter by attribute, by predicate, or by the filter instance:

findFormulaFilter(revenue, DM.Category.Category);
findFormulaFilter(revenue, (filter) => filter.attribute.expression === '[Category.Category]');
Last Updated: