Maintained with ☕️ by
IcePanel logo
Microsoft Azure logo
Original post

Power BI Embedded Filters API now supports single-selection filter

Share

Services

Power BI Embedded now has the capability to set a basic filter as a single-selection filter. To do this, when editing the report, select the checkbox that says **Require single selection** at the bottom of the filter card. [![filter-single-checked](https://azurecomcdn.azureedge.net/mediahandler/acomblog/updates/UpdatesV2/blog/68a25f93-159d-4dc7-ae3d-ad5ca86b7b42.png "filter-single-checked")](https://azurecomcdn.azureedge.net/mediahandler/acomblog/updates/UpdatesV2/blog/e0b3decd-3a54-4cbc-abdc-ca4f38f05af7.png) It’s now possible to have the same single-selection filter behaviour when using the JavaScript client APIs. Just add the “requireSingleSelection” parameter to your filter’s definition and set it to **true**. `var filter = { … requireSingleSelection: true }; ` [![SingleSelect](https://azurecomcdn.azureedge.net/mediahandler/acomblog/updates/UpdatesV2/blog/f0de40e9-b2e9-4907-a325-5b825ca82757.gif "SingleSelect")](https://azurecomcdn.azureedge.net/mediahandler/acomblog/updates/UpdatesV2/blog/32daa0ee-e6b3-49bf-9800-e7c7326d031d.gif) [Learn more about Power BI Embedded Filters APIs](https://github.com/Microsoft/PowerBI-JavaScript/wiki/Filters). * Power BI Embedded * Features * [ Power BI Embedded](https://azure.microsoft.com/en-gb/products/power-bi-embedded/)