Function hasFormulaFilter Beta
hasFormulaFilter(
measure,match):boolean
Checks whether a calculated measure formula contains a filter matching the given target.
Parameters
| Parameter | Type | Description |
|---|---|---|
measure | Readonly< CalculatedMeasure > | The calculated measure to check. |
match | FormulaFilterMatcher | How to target the filter. See FormulaFilterMatcher. |
Returns
boolean
true when a matching filter is present.
Example
hasFormulaFilter(revenue, DM.Category.Category); // true
hasFormulaFilter(revenue, DM.Commerce.Country); // false