Forum Discussion

stevenamani's avatar
stevenamani
Advocate II
8 years ago
Solved

Filter Not Working (Javascript API)

I am using the Javascript API to embed a powerbi report however the filter is not affecting the result. The code is as follows:   function getFilters () { const filter1 = {$schema: "http://powerbi....
  • stevenamani's avatar
    8 years ago

    In case anyone else comes accross this:

     

    The issue was having the numeric value in double quotes. Instead of 

     

     

    operator: "In",values: ["470"]};

    It should be

    operator: "In",values: [470]};