cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Blaenzo Regular Visitor
Regular Visitor

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

Helpful resources

Announcements
Virtual Launch Event

Microsoft Business Applications October Virtual Launch Event

Join us for an in-depth look at the new innovations across Dynamics 365 and the Microsoft Power Platform.

Power BI Helps Homeless and Trouble Youth

Power BI Helps Homeless and Trouble Youth

We spoke with Power BI Super User, Greg Deckler, about his charity work

MBAS Gallery

Watch Sessions On Demand!

Continue your learning in our online communities.

Users Online
Currently online: 150 members 1,911 guests
Please welcome our newest community members: