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

Try your skills in the Power BI Dataviz World Championship! Round one ends June 26. Join 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
Fabric Data Days is here Carousel

Fabric Data Days 2026

Don't miss out on Data Days, June 15 through August 7. Learn Fabric, Power BI, SQL, AI and more.

May Power BI Update Carousel

Power BI Monthly Update - May 2026

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

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Top Kudoed Authors