Forum Discussion
abhi123
10 years agoFrequent Visitor
embed filter issue
Hello, I am finding difficulty in applying the filter through embed javascript api. I have two companies, i.e. 'abc' and 'xyz', I want to apply filter on companyname with 'abc'. I trie...
Sunkari
Responsive Resident
9 years agoabhi123: Sorry Man. I don't have that if found any it. Please share with me
abhi123
9 years agoFrequent Visitor
No issues.
Thanks
Abhi.
- LeslieCUy9 years agoFrequent Visitor
In your embedConfiguration, is "filter" or "filters" (with an 's')?
Per the documentation, I believe it is filters.
Also, it should be an array i.e., filters: [ defaultFilter.toJSON() ]
Please give it a try and let me know because I too am having issues setting the filters in the embeddedConfiguration. I get the following errors in the console
https://wabi-us-north-central-redirect.analysis.windows.net/powerbi/metadata/models Failed to load resource: the server responded with a status of 401 (Unauthorized)Uncaught- Array[3]
- 0:Object
- message:"filters is invalid. Not meeting type constraint"
- __proto__:Object
- 1:Object
- message:"filters is invalid. Not meeting type constraint"
- __proto__:Object
- 2:Object
- message:"filters property is invalid"
- __proto__:Object
- length:3
- __proto__:Array[0]