Showing results for 
Search instead for 
Did you mean: 
kishanbhaip Frequent Visitor
Frequent Visitor

visual.setFilter not working for TopN type fitlers

I get the following error while trying to set the TopN filter. 

I tried with a visual that already has a TopN filter. passed an empty array to cleat the filters it and then applied the filter that I had gotten from getFilters.
Still it throws the error. 
I am embedding a report and then using the setFilter.