Function withAddedFormulaFilters Beta
withAddedFormulaFilters(
filters):CalculatedMeasureTransformer
Returns a transformer that adds multiple filters to a calculated measure formula, scoping the whole formula by each of them.
Parameters
| Parameter | Type | Description |
|---|---|---|
filters | Filter[] | The filters to add. |
Returns
A transformer producing the updated calculated measure.
Example
const scoped = withAddedFormulaFilters([
filterFactory.members(DM.Commerce.AgeRange, ['19-24', '25-34']),
filterFactory.members(DM.Commerce.Gender, ['Female']),
])(revenue);