How to use filter
-
Hi
Thanks for making this plugin. I’ve been using it for a while now and it’s perfect. But recently I need to use filter to filter my page based on some parameters but I can’t figure out where to insert this javascript code in the samples:var relatedFilterObj = [{
$schema : “https://powerbi.com/product/schema#basic”,
target : {
table : “Countries”,
column : “Country”,
},
operator : “=”,
values : [country]}
];var relatedURL = pageURL + “?filters=” + encodeURIComponent(JSON.stringify(relatedFilterObj));<h3>Applying Slicers</h3>The plugin can also apply Slicers before the report loads based on passing stringified JSON in the URL. Read more about [Slicers](https://github.com/Microsoft/PowerBI-JavaScript/wiki/Slicers)
Thanks
Zara
- The topic ‘How to use filter’ is closed to new replies.