cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
johnpmc
Regular Visitor

Embedded Filters

Hi all,

 

I would like to write a custom GUI to handle report filtering using the javascript api.  I can see from the documentation (https://github.com/Microsoft/PowerBI-JavaScript/wiki/Filters) how to define and add/remove filters, however can anybody tell me how I can get the filter options for a field to include in my custom GUI?  I can see how to set the values to filter on but cannot see how to get all of the options as highlighted below.

 

Thanks

 

johnpmc_0-1619680992153.png

 

1 REPLY 1
V-lianl-msft
Community Support
Community Support

Hi @johnpmc ,

 

Please refer to these:

https://docs.microsoft.com/en-us/javascript/api/overview/powerbi/configure-report-settings#on-load-f... 

https://www.kasperonbi.com/embed-your-power-bi-report-with-predefined-filters/ 

 

Best Regards,
Liang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

Helpful resources

Announcements
PBI User Groups

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group!

MBAS on Demand

Microsoft Business Applications Summit sessions

On-demand access to all the great content presented by the product teams and community members! #MSBizAppsSummit #CommunityRocks

MBAS Attendee Badge

Claim Your Badge & Digital Swag!

Check out how to claim yours today!

secondImage

Are You Ready?

Test your skills now with the Cloud Skills Challenge.

Top Solution Authors