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
Blaenzo
Advocate I
Advocate I

Basic example of filtering in custom visual with apiVersion 2.6.0

Hi,

 

I currently have a custom visual that highlights/filters other visuals using:

selectionManager.select(identity)

and I would like to replace/extend this functionality to filtering other visuals, i.e. apply a persistent filter vs just selecting, but I can find only very little information on how to do this. All basic examples I can find are using the old apiVersion.

 

Info from the Microsoft reference page: https://docs.microsoft.com/en-us/power-bi/developer/visuals/filter-api

 

I have the following questions:

  1. What are the necessary steps to change the 'selection' functionality into filtering?
  2. Will it work on a categorical dataset, or do I need to add a table to the dataViewMappings in capabilities.json?
  3. Is there a basic example (on e.g. github) that uses filtering using apiVersion 2.6.0 or later?

Thank you,

Martijn

0 REPLIES 0

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.