Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! It's time to submit your entry. Live now!
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
Hi @johnpmc ,
Please refer to these:
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.
| User | Count |
|---|---|
| 4 | |
| 3 | |
| 2 | |
| 2 | |
| 1 |
| User | Count |
|---|---|
| 6 | |
| 5 | |
| 4 | |
| 4 | |
| 3 |