AtlasPublicPolicy / power-bi-embedded

Use Power BI Embedded to embed dashboards, reports, report visuals, Q&A, and tiles in your WordPress website.
GNU General Public License v3.0
49 stars 34 forks source link

Let users set filters for their Power BI reports. #8

Open wladston opened 6 years ago

wladston commented 6 years ago

This adds a new configuration option to reports: filters. It passes data in it as a JavaScript object inside the filters configuration option.

It also allows one to setup custom filters via the shortcode. For instance, to show a report with a filter applied, one could do:

[powerbi id='10' filter="{$schema:
'http://powerbi.com/product/schema#basic',
target: {table: 'Product', column: 'id'}, operator: 'In',
values: new Array('p1', 'p2', 'p3')}"]