how we use custom filter for gooddata using react ...
# gooddata-platform
g
how we use custom filter for gooddata using react mean how we set MAQL query on basis of option selected in react on global lavel for dashboard
m
Hi Gaurav, the outcome of a MAQL statement (metric) visualized in an insight can be altered by setting up attribute filters on insight or dashboard level. Information on how to implement Attribute Filter Button component is available here: https://sdk.gooddata.com/gooddata-ui/docs/attribute_filter_component.html https://sdk.gooddata.com/gooddata-ui/docs/attribute_filter_button_component.html More info on how attribute filters work in GoodData: https://help.gooddata.com/doc/enterprise/en/dashboards-and-insights/analytical-designer/visualize-your-data/filters-in-analytical-designer/ https://help.gooddata.com/doc/enterprise/en/dashboards-and-insights/dashboards/filters-in-dashboards/ Hope this helps.
You might also take a look at the exact way the Attribute Filter component is used to affect insights here: https://sdk.gooddata.com/gooddata-ui/docs/filter_visual_components.html#attribute-filter-component-filter For a better understanding, there is also a demo page with source code available here: https://gdui-examples.herokuapp.com/attribute-filter-components/attribute-filter