1 Reply Latest reply on Nov 17, 2016 1:35 PM by Jared Dominguez

    Tableau Javascript Filter Issue

    Abhishek Pandya

      Hi guys,

       

      I have passed single value in the filter with below line.

       

      activeSheet.getWorksheets().get('Tableau Test 1').applyFilterAsync('State','Alabama', tableauSoftware.FilterUpdateType.REPLACE);

       

      Now i want to reset the filter while clicking somewhere in the chart.!!

       

      What should i do?....

       

      Thanks in advance.

      Abhi.

       

      Tableau Issue.png

        • 1. Re: Tableau Javascript Filter Issue
          Jared Dominguez

          I believe the filter works the same way that the regular filter UI works in dashboard. For example, if you select Alabama from a filter drop-down, you have to use the filter drop-down to clear the filter. If you want to create an external UI element to clear the filter, you should be able to use the clearFilterAsync method. E.g.

           

          activeSheet.getWorksheets().get('Tableau Test 1').clearFilterAsync('State');

           

          Hope that helps!