Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

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