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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
jaypi
Frequent Visitor

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 5
v-viig
Community Champion
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

pbicvsupport@microsoft.com

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
Community Champion
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

pbicvsupport@microsoft.com

 

jaypi
Frequent Visitor

Hi Ignat, If you look at the 1.8.0 there is a FilterAction parameter added to applyJsonFilter, the documentation doesnt explain the purpose - could you please help understand the purpose behind this parameter. https://github.com/Microsoft/PowerBI-visuals-tools/blob/f5ff3a9f14b6648aa6728209414f587452eb4b64/tem... Thanks Jay
v-viig
Community Champion
Community Champion

I'll contact Power BI Csutom Visuals API team to get details.

 

Ignat Vilesov,

Software Engineer

 

Microsoft Power BI Custom Visuals

pbicvsupport@microsoft.com

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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