Hi, I’m using Chartfactor toolkit in a react app and I need to apply two filters with the same field, one to exclude a specific category and another to include only a group of categories, how can I do this?, is it possible?
Two filter with the same name
emoya
#2
Well, first at all one of the filters should be a static filter, what you can do is use a static filter for the exclution and the set the property coexistent in true, like in this example:
const staticFilter = cf.Filter('field_name')
.operation('operation')
.value(value)
.label('Label')
.coexistent(true)
This allows you to have other filter with the same field but with a different operation.
davisg
#3
I see, well I was using a normal filter, but you have the reason, I want the exclution to be there all the time, so i better use a static filter, It was pretty easy, thanks for your help