admin管理员组

文章数量:1122846

In my embedded power bi report I'm using a component name Smart Filter pro by OKVIZ. I want to select some items using filters by javascript. I tried according to their documentation but its not working.

I tried this to select australia but its not working.

const filter: IHierarchyFilter ={
      $schema: '',
      target:[
        {
            "table": "AdminRule",
            "column": "Country"
        }
      ],
      hierarchyData:[
        {
            "operator": "Selected",
            "value": "Austria"
        }
      ],
      filterType:9
    }

But for basic filter

    const filter: IBasicFilter = {
      $schema: '',
      target: {
        "table": "AdminRule",
        "column": "Country"
      },
      operator: "In",
      values: ["Australia"],
      filterType: 1
    };

I used this config and its working

本文标签: Slicer filter on embedded power bi by APIStack Overflow