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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

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
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

Check out the July 2025 Power BI update to learn about new features.