Forum Discussion

DavidAnthony's avatar
DavidAnthony
Helper II
1 year ago
Solved

How to Apply a Filter to a Specific Power BI Custom Visual Without Affecting Other Visuals?

Hi everyone, I'm working on a Power BI custom visual and trying to implement a filter that only applies to my specific visual, without affecting other visuals on the same page. Below is the code I...
  • v-echaithra's avatar
    1 year ago

    Hi DavidAnthony ,

    Thank you for reaching out to Microsoft Community.

    Try local filtering inside your visual logic, where it filters data post dataView load, you must handle the filtering inside your visual logic, not through applyJsonFilter.

    While building the visual, apply your own filtering logic to the dataView before rendering.

    Refer this document for implementing Data view: Power BI Custom Visual Part 4 - Accessing the DataView - Shetland Data

    If this post helps, please give us Kudos and consider marking it Accept as solution to assist other members in finding it more easily.

    Regards,
    Chaithra.