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

Vote for your favorite vizzies from the Power BI Dataviz World Championship submissions. Vote now!

Reply
Raghugupta1234
Frequent Visitor

How to get filter data from another visual

Hi Team, I developed a multi-input custtom visual with the reference of a text filter. My code filtering is working fine, but here I am getting issues. Please, anyone can help me.

 

1. When the slicer or mass filter visual is placed in a custom visual place, when I switch back to my visual through the code option from visualization, my filtered inputs are not showing. and 

2. When we add any other input to the mass filter and filter, then I need to show the filtered inputs in my visual

 

and I observed that when switching back, the only constructor is calling 

 

Here I am adding my code 

 

 

 

Raghugupta1234_0-1719900439123.png

 

  

 

2 REPLIES 2
Anonymous
Not applicable

Hi  @Raghugupta1234 ,

 

You can also try checking the relevant information about ‘filter’ in the code, correctly setting up custom visual object data binding and presentation logic to ensure proper handling of necessary data and filters during initialization.

You can check whether the interaction between visual objects is enabled or disabled.

vyangliumsft_0-1720141613330.png

Change how visuals interact in a report - Power BI | Microsoft Learn

If the above results do not meet your expectations, can you express the expected results in the form of a picture, we can help you better.

 

Best Regards,

Liu Yang

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

When I checked in my code filter code correct, here I am unable to find switch the visuals events. I added consoles in mode; if we switch the visual in my console in place of the page name showing unknown, and when I switch to my visual, only constructor options are called... I wrote filter logic in the update method.

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

Vote for your favorite vizzies from the Power BI World Championship submissions!

Sticker Challenge 2026 Carousel

Join our Community Sticker Challenge 2026

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

January Power BI Update Carousel

Power BI Monthly Update - January 2026

Check out the January 2026 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.