hii i want to create fielter for good data in reac...
# gd-beginners
g
hii i want to create fielter for good data in react but it's not working
t
Hello @Gaurav Tiwari, I’m not a GD.UI expert, but in general filters are applied on measures or attributes, not on whole Insights. • I believe there should be ID of the measure you want to filter, not the Insight ID. • Another thing I would check is if the {filters} are passed in the expected format as I see quite a lot of transformations of the filter definition in your code snippet.
d
Hi @Gaurav Tiwari I think the issue might be the way you create the filters, try
newMeasureValueFilter
instead of
new MeasureValueFilter
(no space between new and the rest)
The API docs for the factory function are here: https://sdk.gooddata.com/gooddata-ui-apidocs/docs/sdk-model.newmeasurevaluefilter.html (you can find all the other filter types there as well)