Skip to content

Conversation

wladston
Copy link
Contributor

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')}"]

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

This lets users set filters automatically for their Power BI reports.
This allows one to setup custom filters via the powerbi 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')}"]
```
@wladston wladston changed the title Lets users set filters for their Power BI reports. Let users set filters for their Power BI reports. Oct 25, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant