Forum Discussion

Raghugupta1234's avatar
Raghugupta1234
Frequent Visitor
2 years ago

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 

 

 

 

 

  

 

2 Replies

  • Anonymous's avatar
    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.

    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.

    • Raghugupta1234's avatar
      Raghugupta1234
      Frequent Visitor

      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.