1 Reply Latest reply on Mar 13, 2018 9:56 PM by patrick.byrne.0

    Report filters not working on every report

    Miles Stewart

      Hey all,

       

      Wanted to see if I could get some help from anyone that is currently experiencing this issue or something similar.

      We are using the Tableau JavaScript API to embed a report in our application. I'm trying to apply filters before loading the viz. Like the example below:

       

      var containerDiv = document.getElementById("vizContainer"),

      url = "http://YOUR-SERVER/views/YOUR-VIEW",

      options = {

          "Currency": "USD"

      };

      viz = new tableau.Viz(containerDiv, url, options);

       

      The issue is that different filters work on different reports.

       

      On Report 1 that we are embedding, if we set the "Currency" filter it works but the "Area Meaurement" does not.

      On Report 2 that we are embedding, if we set the "Area Meaurement" filter it works but the "Currency" filter doesn't not.

       

      If I change the approach and use 'changeParameterValueAsync' once the report is loaded. The viz is now filtered.

       

      Does anyone have any idea or any pointers that could steer me in the right direction?

       

      Thanks in advance,

      Miles