cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Frequent Visitor

Bookmarks not working when filtering string values with json filter api

Hey,

 

I need help with bookmarks and the filter api in a custom visual. Right now I am applying filters like this:

 

let filter: IBasicFilter = {
                    $schema: "http://powerbi.com/product/schema#basic",
                    ...(new BasicFilter(
                        this.callbacks.getFilterColumnTarget(), 
                        "In",
                        filterValues
                    ))
                };
this.visualHost.applyJsonFilter(filter, "general", "filter", FilterAction.merge);

 

my capabilities:

 

    "objects": {
      "general": {
        "displayName": "General",
        "properties": {
        
          "filter": {
              "type": {
                  "filter": true
              }
          },
          "selfFilter": {
              "type": {
                  "filter": {
                      "selfFilter": false
                  }
              }
          }
      }
    }
  }

 

 

This works perfectly fine if I have numeric values as my filter values. If I have string values the filter is created and all other visuals are filter. But if I create a bookmark and load it the filter disappears and no visual is filtered.

I also tried using the AdvancedFilter-Object, but this does not change anything.

 

My Visual API Version is 3.2.0.

 

I would be thankful for every hint.

 

regards

lucmax

Helpful resources

Announcements

August Community Highlights

Check out a full recap of the month!

Experience what’s next for Power BI

Join us for an in-depth look at the new Power BI features and capabilities at the free Microsoft Business Applications Launch Event.