Forum Discussion

jaypi's avatar
jaypi
Frequent Visitor
8 years ago

Advanced Filter API

When invoking the 

this.visualHost.applyJsonFilter method consecutively to apply the filter on two different calls only the latest applied filter is getting applied. Do you face this issue, any guidance would help.

5 Replies

  • v-viig's avatar
    v-viig
    Community Champion

    Hello jaypi

     

    Are you trying to apply 2 filters one by one?

    If so, this is expected behavior.

     

    Ignat Vilesov,

    Software Engineer

     

    Microsoft Power BI Custom Visuals

    [email protected]

    • jaypi's avatar
      jaypi
      Frequent Visitor
      Hi Ignat yes, we are applying 2 filters using applyJsonFilter one after the other. Even after using the newly added Filter Action only one filter is getting applied. Thanks Jay
      • v-viig's avatar
        v-viig
        Community Champion

        As far as I know, Advanced Filter API allow to apply only one filter.

        In other words, if you call applyJsonFilter a few times only the last filter will be applied.

         

        Ignat Vilesov,

        Software Engineer

         

        Microsoft Power BI Custom Visuals

        [email protected]