cancel
Showing results for 
Search instead for 
Did you mean: 
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
PBI User Groups

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group!

MBAS on Demand

Microsoft Business Applications Summit sessions

On-demand access to all the great content presented by the product teams and community members! #MSBizAppsSummit #CommunityRocks

Get Ready for Power BI Dev Camp

Power BI Dev Camp - June 24th

Mark your calendars and join us for our next Power BI Dev Camp!

Top Solution Authors
Top Kudoed Authors