title: How to set filters in reports power BI embedded javascript
body: <p>I want to add somes filters on my reports power bi embedded, i have an html file, and i need to add somes filters in javascript but i dont have experience as a developer. I just need to see an exemple to see how to add it.</p>
  
  <pre><code>&lt;head&gt;  `enter code here`
      &lt;meta http-equiv="Content-type" content="text/html; charset=utf-8"&gt;  
      &lt;meta name="viewport" content="width=device-width,initial-scale=1"&gt;  
      &lt;title&gt;test&lt;/title&gt;  
  
      &lt;script type="text/javascript" language="javascript" src="https://code.jquery.com/jquery-1.12.4.js"&gt;&lt;/script&gt;  
      &lt;script type="text/javascript" language="javascript" src="https://rawgit.com/Microsoft/PowerBI-JavaScript/master/dist/powerbi.min.js"&gt;&lt;/script&gt;  
  
  
  &lt;/head&gt;  
  
  &lt;body&gt;  
      &lt;h1&gt;test&lt;/h1&gt;  
      &lt;div id="reportContainer" style="width: 80%; height: 800px;"&gt;&lt;/div&gt;  
  &lt;/body&gt;  
  
  &lt;script&gt;  
      $(document).ready(function () {  
          var getEmbedToken = "https://testclienttest.azurewebsites.net/api/HttpTrigger1?code=XXXXXXXXXXXXXXXXXXX/XXXXXXXXXXXXX==";  
  
          $.ajax({  
              url: getEmbedToken,  
              jsonpCallback: 'callback',  
              contentType: 'application/javascript',  
              dataType: "jsonp",  
              success: function (json) {  
  
                  var models = window['powerbi-client'].models;  
  
                  var embedConfiguration = {  
                      type: 'report',  
                      id: json.ReportId,  
                      embedUrl: json.EmbedUrl,  
                      tokenType: models.TokenType.Embed,  
                      accessToken: json.EmbedToken  
                  };  
  
                  var $reportContainer = $('#reportContainer');  
                  var report = powerbi.embed($reportContainer.get(0), embedConfiguration);
  
  
              },  
              error: function () {  
                  alert("Error");  
              }  
          });  
  
      });  
  &lt;/script&gt;  
  
  &lt;/html&gt;
  </code></pre>
  
  <p>i think the filters to add is after this line :  var report = powerbi.embed($reportContainer.get(0), embedConfiguration);</p>