Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Get certified in Microsoft Fabric—for free! For a limited time, get a free DP-600 exam voucher to use by the end of 2024. Register now

Reply
coffey88
Frequent Visitor

API activePage.getFilters() throws 500 after drill through from a page with bookmark applied.

We have a report page with bookmark applied. After clicking an item to drill through to, the embed drills through successfully. However I am trying to get the current filters/visuals from the active page during the 'rendered' event. I have found that if I have the settings like this:

 settings: {
            panes: {
                filters: {
                    visible: true,
                    expanded: true
                },
            }
}
The activePage.getFilters works as expected. However when visible is false. I can debug to a 500 from PBIs api request.

If their is no bookmark state applied, it does not 500. I wonder if it has to do with a filter that is within the bookmark state. When the filters are visible, I noticed this filter in the result of getFilters, that stood out to me:
{
"$schema": "http://powerbi.com/product/schema#notSupported",
"target": null,
"filterType": 2,
"message": "Not supported filter type - can't serialize to json syntax.",
"notSupportedTypeName": "Passthrough"
}
I wonder if this is some how breaking the non-visible getFilters call? This was all reproducable in the PBI Playground. From a developer POV, the visibility of filters should not determine the result of the getFilters API call.


0 REPLIES 0

Helpful resources

Announcements
November Carousel

Fabric Community Update - November 2024

Find out what's new and trending in the Fabric Community.

Live Sessions with Fabric DB

Be one of the first to start using Fabric Databases

Starting December 3, join live sessions with database experts and the Fabric product team to learn just how easy it is to get started.

Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early Bird pricing ends December 9th.

Nov PBI Update Carousel

Power BI Monthly Update - November 2024

Check out the November 2024 Power BI update to learn about new features.